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 / vint

Assuming '=' is added by mistake in the macro.
#define prod(a,b) a*b
int main()
{
int x=2, y=3;
printf("%d",prod(x+2,y-10));
return 0;
}
Ans: None
The output is -2
a*b
x+2*y-10
2+2*3-10
2+6-10
8-10
-2

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of structure pointer in c?

1072


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1564


What language is c written?

1063


When should we use pointers in a c program?

1147


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1595


Why c is called procedure oriented language?

1061


Why do we write return 0 in c?

1078


How can I swap two values without using a temporary?

1116


How to Throw some light on the splay trees?

1067


Why is c so popular?

1169


What language is windows 1.0 written?

1082


When should the volatile modifier be used?

1196


What is sizeof int?

1109


What is indirection? How many levels of pointers can you have?

1153


What is the newline escape sequence?

1081