Will Macros support multiple arguments ?
Answers were Sorted based on User's Feedback
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 |
Answer / ronald
variadic macros --- C99 standard
#define MY_MACRO(...)
Is This Answer Correct ? | 2 Yes | 0 No |
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 |
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 |
find the size of structure without using the size of function
What is a far pointer?What is the utility?
how to write optimum code to divide a 50 digit number with a 25 digit number??
How many data structures are there in c?
how many key words availabel in c a) 28 b) 31 c) 32
What is the difference between declaring a variable by constant keyword and #define ing that variable?
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.
Differentiate b/w Modify and Update commands giving example.
which is an algorithm for sorting in a growing Lexicographic order
What is a method in c?
What is an object?
name the language for writing c compiler?