C Programming Question and Answers

69. What is a program flowchart?
 
  • A flowchart provides a visual representation of the step by step procedure towards solving a given problem.
  • Flowcharts are made of symbols, with each symbol in the form of different shapes.
  • Each shape may represent a particular entity within the entire program structure, such as a process, a condition, or even an input/output phase.
 
Your Name Your Email-ID
Your Answer
70. What are the advantages and disadvantages of a heap?
 
  • Storing data on the heap is slower than it would take when using the stack.
  • However, the main advantage of using the heap is its flexibility. That's because memory in this structure can be allocated and remove in any particular order.
  • Slowness in the heap can be compensated if an algorithm was well designed and implemented.
 
Your Name Your Email-ID
Your Answer
71. Is it possible to create your own header files?
  Yes, it is possible to create a customized header file. Just include in it the function prototypes that you want to use in your program, and use the #include directive followed by the name of your header file.
 
Your Name Your Email-ID
Your Answer
72. What is the use of "# define" in C?
  #define is a pre-processor directive which is used to define constant value. This constant can be any of the basic data types.
 
Your Name Your Email-ID
Your Answer