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
What are structure types in C?
Why c is called a middle level language?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
What is structure packing in c?
What is omp_num_threads?
Is int a keyword in c?
What is scope of variable in c?
Explain what is the difference between text files and binary files?
int i=10; printf("%d %d %d", i, i=20, i);
What is the role of && operator in a program code?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Difference between exit() and _exit() function?
given post order,in order construct the corresponding binary tree
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
What is pragma in c?