struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(“%d”,s.x); }
2 12175main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 8746main() { unsigned int k = 987 , i = 0; char trans[10]; do { trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' ); } while(k /= 16); printf("%s\n", trans); }
4 12155main() { FILE *fs; char c[10]; fs = fopen(“source.txt”, ”r”); /* source.txt exists and contains “Vector Institute” */ fseek(fs,0,SEEK_END); fseek(fs,-3L,SEEK_CUR); fgets(c,5,fs); puts(c); }
1 9139main() { char as[] = "\\0\0"; int i = 0; do{ switch( as[i++]) {case '\\' : printf("A"); break; case 0 : printf("B"); break; default : printf("C"); break; }} while(i<3); }
4 9555#define MAX 3 main() { printf("MAX = %d \n",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif
4 26891main() { int l=6; switch(l) { default:l=l+2; case 4:l=4; case 5:l++; break; } printf("%d",l); }
1 3360
Why should I use wordpress?
How to change the view render file from controller?
What is the right type to use for boolean values in c?
Explain the MasterSource/MasterFields behavior?
What are the custom fields in wordpress? How to display it?
What is c++ 11 and c++ 14?
What does the format %10.2 mean when included in a printf statement?
How do you reverse the string in python?
Give differences between - new and malloc() , delete and free() ?
Why do we use & in c?
What are the advantages and disadvantages of a heap?
What do you mean by tagging used in laravel 5?
How do I edit an email template?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Is c# a good language?