64/square(4)

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


Please Help Members By Posting Answers For Below Questions

What is main () in c language?

583


What is a buffer in c?

564


What is use of null pointer in c?

561


What is the default value of local and global variables in c?

551


How can I ensure that integer arithmetic doesnt overflow?

596






Compare array data type to pointer data type

592


Where static variables are stored in c?

575


What is a method in c?

611


What are the different properties of variable number of arguments?

651


Explain what is output redirection?

655


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?

768


what is bit rate & baud rate? plz give wave forms

1506


What do the functions atoi(), itoa() and gcvt() do?

715


How can I dynamically allocate arrays?

579


What does typeof return in c?

630