what will be the output of this program?
#include<stdio.h>
#define cube(x) x*x*x
void main()
{
int i,j=5;
i=cube(j+3);
printf("i=%d",i);
}
Answer Posted / sunil samal
38 because above declared the pree processer directive # defind cube (x) x*x*x
it passes the value (5+3)to the above directive
So the operation will be as
5+3*5+3*5+3
Hence
5+15+15+3=38
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How can I sort more data than will fit in memory?
How can I read data from data files with particular formats?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What are the types of bitwise operator?
Define C in your own Language.
what are non standard function in c
can we have joblib in a proc ?
What is a floating point in c?
Did c have any year 2000 problems?
What is modeling?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What is a char in c?
Can you pass an entire structure to functions?
How to set file pointer to beginning c?