Will Macros support multiple arguments ?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does selection sort work in c?

796


Explain about the constants which help in debugging?

1063


main() { printf("hello"); fork(); }

925


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2448


What is the use of parallelize in spark?

742






Which header file is essential for using strcmp function?

1161


Explain do array subscripts always start with zero?

929


Can you think of a logic behind the game minesweeper.

2197


What are the properties of union in c?

793


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1929


Find MAXIMUM of three distinct integers using a single C statement

804


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

832


In c language can we compile a program without main() function?

805


Explain what is the difference between functions abs() and fabs()?

816


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

786