Hi,
I am having a programming doubt? Please have a look at the below mentioned code snippet and tell me the difference?
int main()
{
struct sockaddr_in serv_addr, cli_addr;
/* Initialize socket structure */
bzero((char *) &serv_addr, sizeof(serv_addr));
}
Now, what if i do something similar without typecasting (char *), then also i feel it will do the same thing? Can someone clarify?
/* Initialize socket structure */
bzero( &serv_addr, sizeof(serv_addr));