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?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What is a good data structure to use for storing lines of text?
What is the right type to use for boolean values in c?
What is actual argument?
write a program for the normal snake games find in most of the mobiles.
Is it possible to have a function as a parameter in another function?
What is the use of header?
Explain how can you tell whether a program was compiled using c versus c++?
What library is sizeof in c?
What are global variables?
What does 2n 4c mean?
Was 2000 a leap year?
What are identifiers and keywords in c?
Write a C program to count the number of email on text