#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

to remove the repeated cahracter from the given caracter array. i.e.., if the input is SSAD output should of SAD

6 Answers   Synergy,


void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(ā€œ%dā€, i); }

2 Answers  


Given a list of numbers ( fixed list) Now given any other list, how can you efficiently find out if there is any element in the second list that is an element of the first list (fixed list)

3 Answers   Disney, Google, ZS Associates,


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

1 Answers  


given integer number,write a program that displays the number as follows: First line :all digits second line : all except the first digit . . . . Last line : the last digit

8 Answers  






What is your nationality?

1 Answers   GoDB Tech,


#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }

1 Answers  


prog. to produce 1 2 3 4 5 6 7 8 9 10

4 Answers   TCS,


program to Reverse a linked list

12 Answers   Aricent, Microsoft, Ness Technologies,


how to delete an element in an array

2 Answers   IBM,


Write a routine to implement the polymarker function

0 Answers   TCS,


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

3 Answers  


Categories