Select chapter



functions (3.papers)
loops (1.papers)
arrays (2.papers)
structures (3.papers)
unions (1.papers)
pointers (7.papers)
null pointers (1.papers)
strings (2.papers)
misc c concepts (1.papers)
Data structures (5.papers)
linked lists (3.papers)
trees (1.papers)
basics (5.papers)
Hide

Sponsored Links


  

c functions interview questions and answers

Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
3
what is the difference between these two function declarations in C:
extern void fun();  and
void fun();
  1. There is no difference.
  2. first one can be used to say that function definition is in some other file. this can be only used for readability purpose. Otherwise there is no specific difference for compiler.
  3. option 2 is true, but it has some difference for compiler as well.
  4. none of the above are true.
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
5
order of function evaluation in C language:

In below C program, which function will be executed first?
int i = fun1() + fun2() * fun3();
  1. since multiplication is high priority than + , so fun3() executes first.
  2. since multiplication is high priority than + , so fun3() or fun2() executes first.
  3. Though multiplication is high priority, there is no guarantee that fun3() or fun2() will be executed first.
  4. though multiplication is high priority, since fun1() is in first position it will be executed first.
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Read more papers :