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

to find the closest pair

2288


Describe the steps to insert data into a singly linked list.

1020


What are the advantages of c preprocessor?

1209


What is static memory allocation?

1099


Explain how can you tell whether two strings are the same?

970


What is c language and why we use it?

1003


What is malloc and calloc?

1004


What is structure pointer in c?

989


Why does notstrcat(string, "!");Work?

1084


Explain what is the difference between null and nul?

1081


What is size of union in c?

976


What is scanf_s in c?

1066


write a program to find out prime number using sieve case?

2036


Differentiate fundamental data types and derived data types in C.

983


Why are all header files not declared in every c program?

1041