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 / 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 |
Post New Answer View All Answers
Why doesnt this code work?
Explain modulus operator. What are the restrictions of a modulus operator?
Can include files be nested? How many levels deep can include files be nested?
What is the function of this pointer?
What are pointers really good for, anyway?
What does node * mean?
What are the two forms of #include directive?
what do you mean by inline function in C?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What are lookup tables in c?
What is exit() function?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
Which programming language is best for getting job 2020?
What are the features of the c language?
What is the maximum length of an identifier?