Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is it better to bitshift a value than to multiply by 2?

1092


write a progrmm in c language take user interface generate table using for loop?

2048


what is event driven software and what is procedural driven software?

2567


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

1247


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

1024


Write a program to print factorial of given number without using recursion?

990


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

2153


What is output redirection?

1217


Explain what is the difference between text files and binary files?

1154


Define circular linked list.

1027


What is oops c?

1237


What is a pointer and how it is initialized?

1154


What is the use of a conditional inclusion statement in C?

1060


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1093


With the help of using classes, write a program to add two numbers.

1035