C Languages Interview Questions

21. Why C language being considered a middle level language?
 
  • This is because C language is rich in features that make it behave like a high level language while at the same time can interact with hardware using low level methods.
  • The use of a well structured approach to programming, coupled with English like words used in functions, makes it act as a high level language.
  • On the other hand, C can directly access memory structures similar to assembly language routines.
 
Your Name Your Email-ID
Your Answer
22. What are the pre-processor directives?
 
  • Macro inclusion
  • Conditional inclusion
  • File inclusion
 
Your Name Your Email-ID
Your Answer
23. What is the difference between auto variable and register variable in C?
 
  • Storage class of all variables is auto by default unless we specify a variable is register or static or extern in C program.
  • Register variables will be accessed very faster than the normal/auto variables.
  • Since they are stored in register memory rather than main memory.
  • But only limited variables can be used as register since register size is very low. (16 bits, 32 bits, or 64 bits).
 
Your Name Your Email-ID
Your Answer
24. What are library functions?
 
  • Library functions are a collection of predefined functions.
  • They are stored in files with extension lib.
  • These functions are shipped with the compiler for the convenience of the programmers.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 6 of 15