#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

main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); }

1 Answers  


write a program to find out roots of quadratic equation "x=-b+-(b^2-4ac0^-1/2/2a"

2 Answers  


main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }

1 Answers   Zoho,


How to swap two variables, without using third variable ?

104 Answers   AB, ADP, BirlaSoft, Cisco, Cygnet Infotech, HCL, Hewitt, Honeywell, HP, IBM, Infosys, Manhattan, Microsoft, Mobius, Percept, Satyam, SofTMware, TCS, Wipro, Yamaha,


#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }

4 Answers   Google, HCL, Quick Heal, WTF,






How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

0 Answers  


main() { char *p = “ayqm”; char c; c = ++*p++; printf(“%c”,c); }

1 Answers  


program to find magic aquare using array

4 Answers   HCL,


Is the following code legal? struct a { int x; struct a *b; }

2 Answers  


struct Foo { char *pName; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); strcpy(obj->pName,"Your Name"); printf("%s", obj->pName); } a. Your Name b. compile error c. Name d. Runtime error

3 Answers   HCL,


how to test pierrot divisor

0 Answers  


writte a c-programm to display smill paces

2 Answers  


Categories