C Programming Question and Answers

57. What is a file?
  A File is a collection of related information that is permanently stored on the disk and allows us to access and alter that information whenever necessary.
 
Your Name Your Email-ID
Your Answer
58. What is a pointer?
  Pointer is a variable which holds the address of another variable.
 
Your Name Your Email-ID
Your Answer
59. What are the uses of pointers?
 
  • Pointers are used to return more than one value to the function.
  • Pointers are more efficient in handling the data in arrays.
  • Pointers reduce the length and complexity of the program.
  • They increase the execution speed.
  • The pointerssaves data storage space in memory.
 
Your Name Your Email-ID
Your Answer
60. What is enum in C?
 
  • Enumeration is a data type that consists of named integer constants as a list.
  • It starts with 0 by default and value is incremented by 1 for the sequential identifiers in the list.
 
Your Name Your Email-ID
Your Answer