#define square(x) x*x
main()
{
int i;
i = 64/square(4);
printf("%d",i);
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
64
Explanation:
the macro call square(4) will substituted by 4*4
so the expression becomes i = 64/4*4 . Since / and * has
equal priority the expression will be evaluated as (64/4)*4
i.e. 16*4 = 64
Is This Answer Correct ? | 231 Yes | 14 No |
What is "far" and "near" pointers in "c"...?
what is brs test reply me email me kashifabbas514@gmail.com
main() { main(); }
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates.
19 Answers Amazon, BITS, Microsoft, Syncfusion, Synergy, Vector,
main() { int i; clrscr(); for(i=0;i<5;i++) { printf("%d\n", 1L << i); } } a. 5, 4, 3, 2, 1 b. 0, 1, 2, 3, 4 c. 0, 1, 2, 4, 8 d. 1, 2, 4, 8, 16
main() { int (*functable[2])(char *format, ...) ={printf, scanf}; int i = 100; (*functable[0])("%d", i); (*functable[1])("%d", i); (*functable[1])("%d", i); (*functable[0])("%d", &i); } a. 100, Runtime error. b. 100, Random number, Random number, Random number. c. Compile error d. 100, Random number
how to return a multiple value from a function?
main() { float me = 1.1; double you = 1.1; if(me==you) printf("I love U"); else printf("I hate U"); }
main() { int i=400,j=300; printf("%d..%d"); }
void ( * abc( int, void ( *def) () ) ) ();
main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }
# include <stdio.h> int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); }