main() { char *s = "IDIOT"; char *start, *end; start = s; end = s+strlen(s)-1; printf("%c, %c",*start, *end); // prints I T...
struct emp{ char *name; int age; }; struct emp apple; main(){ printf("Enter your name :"); //what do i put in here? printf("Enter you...
I guess I'll answer my own question! correct me if im wrong. in the first case z = 10 + 20 in the second case 1. x = 10+20 = 30 2. x and y...
I usually get confused with the ++ operator, please can u try to clarify it. supposed x = 10, y = 20 z = x++ + y++; z=30 now if it...
thanks boss! problem solved!
main() { char *s1 = "Hello, World!"; char *s2; s2 = (char *)malloc(strlen(s1)*sizeof(char)); int i=0; while(i<strlen(s1)){...
actually the interviewer said that it shudnt be an order n solution, that is the book should be found in the first try itself!
Another interview question. which data structure would you use to program a library, so that books can be found very fast???
I was asked this question in an interview recently List 5 advantages of C over Java! The only things I could think of were C has pointers...
Please help me with this, I am having a hard time!!! main() { int x=10, y=15; x = x++; y = ++y;...
Separate names with a comma.