What is the difference between a structure and a union?
Answer Posted / hr@tgksolutions.com
Structure: All members have their own memory location.
Union: All members share the same memory location.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the applications of c language?
Tell us the use of fflush() function in c language?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
What is static function in c?
Explain the term printf() and scanf() used in c language?
Explain what are linked list?
What is the difference between the expression “++a” and “a++”?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What is header file in c?
Where is c used?
What is keyword with example?
How can I recover the file name given an open stream or file descriptor?
What is the use of in c?
How can I make sure that my program is the only one accessing a file?