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);
}

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


Please Help Members By Posting Answers For Below Questions

Give differences between - new and malloc() , delete and free() ?

1096


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3087


What are pragmas and what are they good for?

991


How do we print only part of a string in c?

1025


How many data structures are there in c?

1113


Explain how do you declare an array that will hold more than 64kb of data?

1448


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3511


What 'lex' does?

1177


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

1175


Why do we need functions in c?

1016


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1968


How can you return multiple values from a function?

1116


What is the return type of sizeof?

1063


please give me some tips for the placement in the TCS.

2108


What is the difference between exit() and _exit() function in c?

1074