Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void m..

Answer / sinchanforyou

It prints:

i=38

Is This Answer Correct ?    25 Yes 10 No

what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void m..

Answer / bala prasad

it prints
512

Is This Answer Correct ?    17 Yes 10 No

what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void m..

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

what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void m..

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

what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void m..

Answer / udai

512

Is This Answer Correct ?    8 Yes 6 No

what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void m..

Answer / srikanth karnati

please explain this program.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

What is the meaning of c in c language?

0 Answers  


What is wrong with this statement? Myname = 'robin';

0 Answers  


Explain what is meant by high-order and low-order bytes?

0 Answers  


What should be keep precautions while using the recursion method?

1 Answers  


for(;;) printf("C language") What is out put of above??

2 Answers   Practical Viva Questions,


What functions are used for dynamic memory allocation in c language?

0 Answers  


What is main void in c?

1 Answers  


What are the types of macro formats?

0 Answers  


How do you override a defined macro?

0 Answers  


Why can arithmetic operations not be performed on void pointers?

0 Answers  


How was c created?

0 Answers  


Why n++ execute faster than n+1 ?

2 Answers  


Categories