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 main () in c language?
What is a buffer in c?
What is use of null pointer in c?
What is the default value of local and global variables in c?
How can I ensure that integer arithmetic doesnt overflow?
Compare array data type to pointer data type
Where static variables are stored in c?
What is a method in c?
What are the different properties of variable number of arguments?
Explain what is output redirection?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
what is bit rate & baud rate? plz give wave forms
What do the functions atoi(), itoa() and gcvt() do?
How can I dynamically allocate arrays?
What does typeof return in c?