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 |
what is calloc and malloc?
How do you prevent buffer overflows in C?
Convert the following expression to postfix and prefix (A+B) * (D-C)
Explain which function in c can be used to append a string to another string?
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=
print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20
what is stack , heap ,code segment,and data segment
Describe the order of precedence with regards to operators in C.
Can u please send me the exam pattern and also Previous papers to javed123go@gmail.com
write a c/c++ programthat connects to a MYSQL server and checks if the INNoDB plug in is installed on it.If so your program should print the total number of disk writes by MYSQL.
What's the difference between struct x1 { ... }; and typedef struct { ... } x2; ?
How do you print an address?