adspace


What are the advantages of Macro over function?

Answer Posted / hrpynux@gmail.com

When writing macros for functions, they saves a lot of time that is spent by the compiler for invoking / calling the functions. Hence, The advantage of a macro over an actual function, is speed. No time is taken up in passing control to a new function, because control never leaves the home function.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are compound statements?

1292


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2740


Differentiate between null and void pointers.

1259


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2216


write a program to find out prime number using sieve case?

2176


What is variable initialization and why is it important?

1394


Explain the difference between null pointer and void pointer.

1160


What is pointer to pointer in c with example?

1200


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

2260


ATM machine and railway reservation class/object diagram

5337


What is the difference between union and anonymous union?

1399


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

2006


How do you convert strings to numbers in C?

1346


What is pointers in c with example?

1169


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2516