64/square(4)
Answer / 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 |
What is the difference between struct and union in C?
#define MAX 3 main() { printf("MAX = %d \n",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif
Difference between strcpy() and memcpy() function?
What is nested structure in c?
can we have joblib in a proc ?
Stimulate calculators to perform addition,subtraction,multiplication and division on two numbers using if/else statement?
What are extern variables in c?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.
2 Answers Scientific Atlanta, Wipro,
What is the use of bitwise operator?
Is array a primitive data type in c?
why array index always starts from zero??