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 the main differences between C and Embedded C?

9 Answers  


Write a program which calculate sum of several number and input it into an array. Then, the sum of all the number in the array is calculated.

2 Answers  


Write a program that will read the input of any number of digits n in a row of shafh showing the breakdown of the printing and printing figures by the recursive function.

0 Answers  


Can you assign a different address to an array tag?

0 Answers  


write a proram to reverse the string using switch case?

0 Answers   Syntel,


Is array name a pointer?

0 Answers  


What is the 'named constructor idiom'?

0 Answers  


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

0 Answers  


Where we use clrscr in c?

0 Answers  


What is a const pointer?

0 Answers  


What is the function of volatile in c language?

0 Answers  


Write c-code for 5+55+555+5555+55555+555555+5555555. Output will be it's answer...

4 Answers   TCS,


Categories