I mean,
printf( "%c\n", (&x)[0][2] );
printf( "%c\n", &x[0][2]);
User Profile
Collapse
-
-
Doubt in Pointers
Dear friends,
Kindly explain me the following difference between the two statements,
char x[]="harry potter";
printf( "%c\n", (&x)[0][2] );
printf( "%c\n", &x[0][0]);
Thanks in advance.
Regards,
Salvi. -
Integer Overflow Corruption
Dear Friend,
Please view the following question.
Which one of the following statements is the shortest statement that will prevent integer overflow corruption in the result?
Choice 1 long c=(long)a*(long )b; ( is not the answer).
Choice 2 long c=(long)a*b;
Choice 3 long c=a*b;
Choice 4 long int c=a*b; [Ans]
Choice 5 long c=(long)(a*b);
But I don't... -
So_debug
Dear Friends,
Can anyone explain me about SO_DEBUG option in the setsockopt function.
Regards,
Selvi. -
-
memset vs calloc
Dear Friends,
Can any one tell me the difference between memset and calloc function in C.
Regards,
Selvi -
Dear Friends ,
Thanks a lot for your answers .
I too got one answer that the reason stderr is unbuffered so that any error messages are displayed as quickly as possible, regardless of whether they contain a newline .
Regards,
Salvi...Leave a comment:
-
stderr
Dear Friends ,
Why standard error is always unbuffered ?
Thanks in advance . . .
Regards ,
Salvi...
No activity results to display
Show More
Leave a comment: