What is the difference between macros and inline functions?
Answer Posted / rahul sharma
Macro is a must do thing whearas inline is a hint to the compiler. he may choose not to inline if the function seems complex (it uses recursion or many loops)
Macro can have side effects e.g. the typical
SQUARE(++i); problem
but these problem are not there in inline functions
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Why is main function so important?
What is difference between union and structure in c?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
What is spark map function?
What is the best organizational structure?
What is realloc in c?
using for loop sum 2 number of any 4 digit number in c language
simple program of graphics and their output display
What is typeof in c?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
Can we access the array using a pointer in c language?
What is the full form of getch?
Who invented b language?
Explain can static variables be declared in a header file?
What is sizeof return in c?