Answer Posted / babitha
macro: one line function;not having any return type and
argument so it would not report error even if any
misbehaves in fnction;not having return statement;
macros would be replaced by that functions/value where ever
macro name presents;if we need any later change in funcions
then modifing only at macro is neccssary, sicne it is
replacing wherever macro name presents.
functions:we would recieve error if the function call and
function prototypes are mismatch;xplicitly it should have
one return statement if the retrun type of fucntion is
aother than void;control from main function would jump to
function defintion of called fucntion if that function is
called rather than replacing the function;it may have moe
than one line function.If we want later change i fucntion
execution,then we need to modify on function prototype(if
modified),fucntion defintion and whereever that function is
called.
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How would you obtain the current time and difference between two times?
What are the back slash character constants or escape sequence charactersavailable in c?
I need a sort of an approximate strcmp routine?
What is the difference between typedef struct and struct?
How many parameters should a function have?
What is a stream?
Can you mix old-style and new-style function syntax?
Tell me what is the purpose of 'register' keyword in c language?
Why functions are used in c?
Can you add pointers together? Why would you?
What is property type c?
Tell me what are bitwise shift operators?
If fflush wont work, what can I use to flush input?
Is null valid for pointers to functions?
State the difference between realloc and free.