Answer Posted / sorab
#define square(x) x*x
main()
{
int i;
i = 64/square(4);
printf("%d",i);
}
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 ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is formal argument?
What's a good way to check for "close enough" floating-point equality?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
Why pointers are used?
What are the advantages and disadvantages of pointers?
The file stdio.h, what does it contain?
Why C language is a procedural language?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
What does typeof return in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
How can I make sure that my program is the only one accessing a file?
will u please send me the placement papers to my mail???????????????????
How can I remove the leading spaces from a string?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What's the right way to use errno?