#define square(x) x*x

main()

{

int i;

i = 64/square(4);

printf("%d",i);

}

Answers were Sorted based on User's Feedback



#define square(x) x*x main() { int i; i = 64/square(4); print..

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

#define square(x) x*x main() { int i; i = 64/square(4); print..

Answer / boby

64

Is This Answer Correct ?    20 Yes 1 No

#define square(x) x*x main() { int i; i = 64/square(4); print..

Answer / mayur rangade

64

Is This Answer Correct ?    13 Yes 0 No

#define square(x) x*x main() { int i; i = 64/square(4); print..

Answer / manish

16

Is This Answer Correct ?    2 Yes 13 No

Post New Answer

More C Code Interview Questions

What is "far" and "near" pointers in "c"...?

3 Answers  


what is brs test reply me email me kashifabbas514@gmail.com

0 Answers  


main() { main(); }

1 Answers  


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

4 Answers   HCL,






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

1 Answers   HCL, rsystems,


how to return a multiple value from a function?

2 Answers   Wipro,


main() { float me = 1.1; double you = 1.1; if(me==you) printf("I love U"); else printf("I hate U"); }

1 Answers  


main() { int i=400,j=300; printf("%d..%d"); }

3 Answers  


void ( * abc( int, void ( *def) () ) ) ();

1 Answers  


main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }

2 Answers   Wipro,


# include <stdio.h> int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); }

1 Answers  


Categories