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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

c program to manipulate x=1+3+5+...+n using recursion

2 Answers   Wipro,


Explain about the constants which help in debugging?

0 Answers  


What is an volatile variable?

15 Answers   HP,


Write a program to find the number of times that a given word(i.e. a short string) occurs in a sentence (i.e. a long string!). Read data from standard input. The first line is a single word, which is followed by general text on the second line. Read both up to a newline character, and insert a terminating null before processing. Typical output should be: The word is "the". The sentence is "the cat sat on the mat". The word occurs 2 times.

0 Answers  


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

0 Answers   Huawei,






There are 8 billiard balls, and one of them is slightly heavier, but the only way to tell was by putting it on a weighing scale against another. What's the fewest number of times you'd have to use the scale to find the heavier ball?

5 Answers   Microsoft, TCS,


int main(){ float f=8.0; if(f==8.0) printf("good"); else printf("bad"); } what is the answere and explain it?

3 Answers  


What are the differences between Structures and Arrays?

0 Answers   TCS,


What are the standard predefined macros?

0 Answers  


what is constant pointer?

3 Answers  


What are .h files and what should I put in them?

3 Answers  


How macro execution is faster than function ?

0 Answers   Wipro,


Categories