Will Macros support multiple arguments ?

Answers were Sorted based on User's Feedback



Will Macros support multiple arguments ? ..

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

Will Macros support multiple arguments ? ..

Answer / ronald

variadic macros --- C99 standard

#define MY_MACRO(...)

Is This Answer Correct ?    2 Yes 0 No

Will Macros support multiple arguments ? ..

Answer / phani kumar s

yes they will support multiple arguments

Is This Answer Correct ?    2 Yes 1 No

Will Macros support multiple arguments ? ..

Answer / lokesh chauhan

Phani Kumar S. Please give me the detailed answer not only
in Yes or No thanks


Plz correct me if i m wrong...
Regards..
Lokesh Kumar Chauhan
lokesh_kumar_chauhan@yahoo.com
Noida

Is This Answer Correct ?    1 Yes 0 No

Will Macros support multiple arguments ? ..

Answer / phani kumar satpathi

yes they will support multiple arguements

they are the short forms for activate some internal
functions

Is This Answer Correct ?    2 Yes 1 No

Will Macros support multiple arguments ? ..

Answer / phani kumar s

defination like :-

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

Is This Answer Correct ?    2 Yes 2 No

Will Macros support multiple arguments ? ..

Answer / shruti

no,
macros dont support multiple arguments..

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

What is character set?

0 Answers  


what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????

2 Answers   Apple,


Do you know null pointer?

0 Answers  


What is actual argument?

0 Answers  


praagnovation

0 Answers  






Heyyy All, Just a challenge . A C program with if Else if(){ /// insert sumthing print ("in if") // insert sumting } else { ///// insert sumthing print ("in else"); //// insert sumthing } can anyone modify it so that program prints. if and else both

3 Answers  


What are the types of operators in c?

0 Answers  


to get a line of text and count the number of vowels in it

2 Answers  


Can we add pointers together?

0 Answers  


dibakar & vekatesh..uttejana here..abt ur reply for in place reversal of linked list..wats p stands for there?

1 Answers  


which is conditional construct a) if statement b) switch statement c) while/for d) goto

0 Answers  


Which is the best website to learn c programming?

0 Answers  


Categories