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

find the size of structure without using the size of function

1 Answers   Bosch,


What is a far pointer?What is the utility?

4 Answers  


how to write optimum code to divide a 50 digit number with a 25 digit number??

0 Answers   MGM,


How many data structures are there in c?

0 Answers  


how many key words availabel in c a) 28 b) 31 c) 32

0 Answers  






What is the difference between declaring a variable by constant keyword and #define ing that variable?

1 Answers  


You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure.

2 Answers   Qualcomm,


Differentiate b/w Modify and Update commands giving example.

1 Answers  


which is an algorithm for sorting in a growing Lexicographic order

0 Answers  


What is a method in c?

0 Answers  


What is an object?

5 Answers  


name the language for writing c compiler?

3 Answers   Microsoft,


Categories