C Languages Interview Questions

13. Where is the function declared as static stored in memory?
 
  • Yes static keyword would not affect where the function gets stored, even if it is static a function will always be stored in stack.
  • But it hides the function from being used in other files other than in which it is declared.
 
Your Name Your Email-ID
Your Answer
14. What is IDE?
 
  • IDE is nothing but Integrated Development Environment.
  • IDE is a tool that provides user interface with compilers to create, compile and execute C programs.
 
Your Name Your Email-ID
Your Answer
15. What are the different types of address in a program?
  There are two types of addresses: absolute addresses and relative addresses.
  • Absolute addresses are those addresses that are fixed and never changes such as addresses of I/O and other ports, etc.
  • On the other hand, relative addresses are those addresses that depend on the starting address of the object code such as addresses of instructions and operands (variables and constants declared and defined in a function). Whenever, the starting address of the object code is changed, these addresses also need to be changed.
 
Your Name Your Email-ID
Your Answer
16. What is exit() function in C?
 
  • exit() function terminates the program/process normally and returns the status code to the parent program/process.
  • Syntax: void exit(int status)
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 4 of 15