C Programming Question and Answers

13. What is data type in C?
 
  • Data types in C language are defined as the data storage format that a variable can store a data to perform a specific operation.
  • Data types are used to define a variable before to use in a program.
  • Size of variable, constant and array are determined by data types.
 
Your Name Your Email-ID
Your Answer
14. What is the difference between interpreter and compiler?
 
  • Interpreters translate the high level language to machine level language line by line
  • Where as Compilers translate the entire program into machine level language.
 
Your Name Your Email-ID
Your Answer
15. What is the difference between declaration and definition of a variable?
 
  • Declaration only identifies the data type of a variable whereas definition causes the space to be reserved for the variable.
  • Thus, declaration in a place where the nature of the variable is stated but no storage is allocated whereas definition is the place where the variable is created or assigned storage.
 
Your Name Your Email-ID
Your Answer
16. 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