#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

write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

0 Answers   Nagarro,


write a c-program to display the time using FOR loop

3 Answers   HCL,


Is it possible to type a name in command line without ant quotes?

1 Answers   Excel, Infosys,


main() { int i =10, j = 20; clrscr(); printf("%d, %d, ", j-- , --i); printf("%d, %d ", j++ , ++i); } a. 20, 10, 20, 10 b. 20, 9, 20, 10 c. 20, 9, 19, 10 d. 19, 9, 20, 10

4 Answers   HCL,


4. Main() { Int i=3,j=2,c=0,m; m=i&&j||c&I; printf(“%d%d%d%d”,I,j,c,m); }

2 Answers   Broadridge,






Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])

1 Answers  


#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 Answers  


main() { char *cptr,c; void *vptr,v; c=10; v=0; cptr=&c; vptr=&v; printf("%c%v",c,v); }

1 Answers  


what is the output of the below program & why ? #include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); }

6 Answers   CSC, IIIT,


write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .

2 Answers  


Print an integer using only putchar. Try doing it without using extra storage.

2 Answers  


How can u say that a given point is in a triangle? 1. with the co-ordinates of the 3 vertices specified. 2. with only the co-ordinates of the top vertex given.

1 Answers  


Categories