Will Macros support multiple arguments ?

Answer Posted / agent

Yes we Macros support Multiple Arguments.

If we want to swap two value using macro how i can do if
you can do this then you know the ans.

or you can do one thing you chk greater no
By macro like
Max(30,10);

defination like :-

Max(x,y) x>y?x:y

here i m passing 2 arguments.

ok bye bye.

thx.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c is a high level language?

621


What's the difference between constant char *p and char * constant p?

658


What is difference between union All statement and Union?

628


What are the types of data types and explain?

673


Can one function call another?

628






List some of the static data structures in C?

762


What is difference between constant pointer and constant variable?

630


Why double pointer is used in c?

567


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

579


#include { printf("Hello"); } how compile time affects when we add additional header file .

1424


ATM machine and railway reservation class/object diagram

4805


FILE PROGRAMMING

1779


What is the benefit of using const for declaring constants?

589


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1507


What is clrscr in c?

679