what is differnence b/w macro & functions
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 |
Write a code to remove duplicates in a string.
Why doesnt this code work?
What is the auto keyword good for?
difference of two no's with out using - operator
What are derived data types in c?
Explain the advantages of using macro in c language?
sir, i cannot find the way how to write aprogram by using array on queue
Can you please explain the difference between malloc() and calloc() function?
How is null defined in c?
In which layer of the network datastructure format change is done
Is array a primitive data type in c?
Is a house a shell structure?