21. #define square(x) x*x
main()
{
int i;
i = 64/square(4);
printf("%d",i);
}
Answer Posted / ashok kumar
i=64/4*4;
i=16*4;
i=64
The final result is : 64
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
What happens if header file is included twice?
Can include files be nested?
How reliable are floating-point comparisons?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What are the key features in c programming language?
Define recursion in c.
Explain what is a 'locale'?
Explain the advantages of using macro in c language?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What standard functions are available to manipulate strings?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
How can you determine the size of an allocated portion of memory?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
how to build a exercise findig min number of e heap with list imlemented?
Why flag is used in c?