#define SQR(x) x * x
main()
{
printf("%d", 225/SQR(15));
}
a. 1
b. 225
c. 15
d. none of the above
Answers were Sorted based on User's Feedback
Answer / anurag
the macro replacement will change printf to:
printf("%d", 225/15*15);
now, / and * have same priority so
225/15*15 = 15*15 = 225.
So answer is 225
| Is This Answer Correct ? | 24 Yes | 2 No |
main() { int a=2,*f1,*f2; f1=f2=&a; *f2+=*f2+=a+=2.5; printf("\n%d %d %d",a,*f1,*f2); }
How to count a sum, when the numbers are read from stdin and stored into a structure?
‎#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }
can u give me the c codings for converting a string into the hexa decimal form......
respected sir, i did my MCA in 2013 when i am going to attend to an interview i was asked about my project how will i explain my project could please help me in this and my project title is "Social Networking Site For Social Responsibility"
Is this code legal? int *ptr; ptr = (int *) 0x400;
main() { while (strcmp(“some”,”some\0”)) printf(“Strings are not equal\n”); }
How to access command-line arguments?
1 o 1 1 0 1 0 1 0 1 1 0 1 0 1 how to design this function format in c-language ?
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
main() { extern int i; i=20; printf("%d",i); }
main() { int i=5; printf(“%d”,i=++i ==6); }