C Languages Interview Questions

49. Is it possible to nest the functions?
  Yes. The functions can be nested.
 
Your Name Your Email-ID
Your Answer
50. When should the functions prototypes be made global?
  When the functions can be called from more than one function.
 
Your Name Your Email-ID
Your Answer
51. How can you return more than one value from a function?
 
  • Function return only one value.
  • By using pointer we can return more than one value.
 
Your Name Your Email-ID
Your Answer
52. What are the advantages of using typedefs in a program?
  The advantages of using typedefs in a program are
  • It makes writing of complicated declaration a lot easier, which in turn helps in eliminating lot of typographical errors.
  • It also helps in achieving portability in programs.
  • Suppose there are some data types that are machine dependent and we use typedefs for those data types, then we only need to change typedefs as we move to new machine platform.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 13 of 15