#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



#define SQR(x) x * x main() { printf("%d", 225/SQR(15)); } a. 1 b. 225..

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

#define SQR(x) x * x main() { printf("%d", 225/SQR(15)); } a. 1 b. 225..

Answer / guest

b) 225

Is This Answer Correct ?    22 Yes 6 No

#define SQR(x) x * x main() { printf("%d", 225/SQR(15)); } a. 1 b. 225..

Answer / srividya h r

a.1

Is This Answer Correct ?    4 Yes 13 No

Post New Answer

More C Code Interview Questions

how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

0 Answers  


main() { int x=5; clrscr(); for(;x<= 0;x--) { printf("x=%d ", x--); } } a. 5, 3, 1 b. 5, 2, 1, c. 5, 3, 1, -1, 3 d. –3, -1, 1, 3, 5

2 Answers   HCL,


main() { char a[4]="HELLO"; printf("%s",a); }

3 Answers   CSC,


Display the time of the system and display the right time of the other country

1 Answers  


How to return multiple values from a function?

7 Answers  






main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;

1 Answers  


#include <stdio.h> int main(void) { int a=4, b=2; a=b<<a+b>>2 ; printf("%d",a); return 0; }

0 Answers   Student,


main() { if ((1||0) && (0||1)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above

5 Answers   HCL,


int i; main(){ int t; for ( t=4;scanf("%d",&i)-t;printf("%d\n",i)) printf("%d--",t--); } // If the inputs are 0,1,2,3 find the o/p

2 Answers  


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

0 Answers   Home,


Write a function to find the depth of a binary tree.

13 Answers   Adobe, Amazon, EFI, Imagination Technologies,


main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

1 Answers  


Categories