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
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Can include files be nested? How many levels deep can include files be nested?
Where are some collections of useful code fragments and examples?
Why doesnt long int work?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What is the purpose of clrscr () printf () and getch ()?
What is calloc()?
What is clrscr in c?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
what is the structure pointer?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Why c is called a middle level language?
Write a program to find factorial of a number using recursive function.
Can a local variable be volatile in c?