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);
}
Answers were Sorted based on User's Feedback
Answer / vijay r15
ans 38
it will pass as (5+3)
So the operation will be as
5+3*5+3*5+3
Hence
5+15+15+3=38
Got it
With thanks and regards,
Vijay r15
raj.vijay55@gmail.com
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / 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 |
how can i print "hello"
What is self-referential structure in c programming?
i have a written test in tomorrow
What is a example of a variable?
Why can't we initialise member variable of a strucutre
how to get the starting address of file stored in harddisk through 'C'program.
Write a program to generate the Fibinocci Series
Is null always defined as 0(zero)?
Can a void pointer point to a function?
What does stand for?
What does extern mean in a function declaration?
What is string constants?