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...

# define prod(a,b)=a*b
main()
{
int x=2;
int y=3;
printf("%d",prod(x+2,y-10)); }

the output of the program is
a.8
b.6
c.7
d.none

Answer Posted / shruti

the syntax for writting the macro is wrong..

we can't have "=" sign while writing macro..
i.e. #define -----

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should the const modifier be used?

1155


Once I have used freopen, how can I get the original stdout (or stdin) back?

1121


Is c easier than java?

1124


Where local variables are stored in c?

1049


How can you increase the allowable number of simultaneously open files?

1211


In a switch statement, explain what will happen if a break statement is omitted?

1125


Explain what is a program flowchart and explain how does it help in writing a program?

1143


What are the types of unary operators?

1252


What are the __date__ and __time__ preprocessor commands?

1177


How can I automatically locate a programs configuration files in the same directory as the executable?

1232


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

1154


what is the significance of static storage class specifier?

2343


What is the use of bit field?

1236


List out few of the applications that make use of Multilinked Structures?

2259


Explain what is the use of a semicolon (;) at the end of every program statement?

1262