C Programming Question and Answers

41. What is local variable in C?
 
  • The variables which are having scope/life only within the function are called local variables.
  • These variables are declared within the function and can't be accessed outside the function.
 
Your Name Your Email-ID
Your Answer
42. What are the types of I/O statements available in C?
  There are two types of I/O statements available in C:
  • Formatted I/O Statements
  • Unformatted I/O Statements
 
Your Name Your Email-ID
Your Answer
43. What is global variable in C?
 
  • The variables which are having scope/life throughout the program are called global variables.
  • A global variable is defined outside the main functions.
  • So, this variable is visible to main function and all other sub functions.
 
Your Name Your Email-ID
Your Answer
44. What is identifier in C?
 
  • Each program elements in a C program are given a name called identifiers.
  • Names given to identify Variables, functions and arrays are examples for identifiers.
 
Your Name Your Email-ID
Your Answer