Tag Archives: difference


Explain use of comma operator and What is the difference between & and && in C. 10m Jun2007

Explain use of comma operator in C with the help of an example. 5m Jun2007  Comma Operator in C A comma operator is used to separate a pair of expressions. A pair of expressions separated by a comma is evaluated left to right, and the type and value of the result are the value of… Read More »

What is the difference between a function and a macro? Find the largest number among two numbers using a function definition as well as a macro. Which is more efficient in terms of execution time and code size? 10m Jun2006

What is the difference between a function and a macro? Find the largest number among two numbers using a function definition as well as a macro. Which is more efficient in terms of execution time and code size? 10m Jun2006  Difference between a function and a macro:    Function Code  Macro Code Function takes 5… Read More »