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

Answers were Sorted based on User's Feedback



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

Answer / ashok kumar

i=64/4*4;
i=16*4;
i=64


The final result is : 64

Is This Answer Correct ?    18 Yes 2 No

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

Answer / rocker1198

Its 64/(4*4)
ans is 4

Is This Answer Correct ?    1 Yes 5 No

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

Answer / mathuri

4

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More C Interview Questions

#define MAX(x,y) (x) > (y) ? (x) : (y) main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i,j,k); } what will the values of i , j and k? }

14 Answers   CDAC, GATE, NDS, TCS,


number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.

3 Answers  


What is a sequential access file?

0 Answers  


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

0 Answers  


how to print value of e(exp1)up to required no of digits after decimal?

1 Answers  






what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

0 Answers   Wipro,


What is union and structure in c?

0 Answers  


What is unsigned int in c?

0 Answers  


What character terminates all strings composed of character arrays? 1) 0 2) . 3) END

3 Answers  


Is this program statement valid? INT = 10.50;

0 Answers  


Write a program of advanced Fibonacci series.

0 Answers   Aspiring Minds,


Write a program to find factorial of a number using recursive function.

0 Answers   Global Logic, TCS,


Categories