#if something == 0
int some=0;
#endif
main()
{
int thing = 0;
printf("%d %d\n", some ,thing);
}
Answer / susie
Answer :
0 0
Explanation
This code is to show that preprocessor expressions are not
the same as the ordinary expressions. If a name is not known
the preprocessor treats it to be equal to zero.
| Is This Answer Correct ? | 7 Yes | 2 No |
how to check whether a linked list is circular.
char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }
write a c-program to find gcd using recursive functions
Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }
How we will connect multiple client ? (without using fork,thread)
void main() { int *mptr, *cptr; mptr = (int*)malloc(sizeof(int)); printf(“%d”,*mptr); int *cptr = (int*)calloc(sizeof(int),1); printf(“%d”,*cptr); }
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }
main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }
29 Answers IBM, TCS, UGC NET, Wipro,
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }
main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); }
Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?