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

Is file a keyword in c?

921


How do you use a pointer to a function?

1068


What is the difference between pure virtual function and virtual function?

1106


What is a macro in c preprocessor?

1087


Where is volatile variable stored?

1068


What does %c mean in c?

1072


Why does everyone say not to use gets?

1088


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1211


What is difference between structure and union with example?

1038


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15791


how to create duplicate link list using C???

2543


How can I read and write comma-delimited text?

1063


What is union and structure in c?

1202


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2159


What is ambagious result in C? explain with an example.

2615