C Languages Interview Questions

25. What is an operator and Operand?
 
  • An operator is a symbol that specifies an operation to be performed on Operands.
  • The data items that operators act upon are called operands.
 
Your Name Your Email-ID
Your Answer
26. What are header files?
 
  • Header files are file with extension h.
  • These files contain declarations of library functions and predefined constants and macros.
 
Your Name Your Email-ID
Your Answer
27. What will happen if break statement is not used in switch case in C?
 
  • Switch case statements are used to execute only specific case statements based on the switch expression.
  • If we do not use break statement at the end of each case, program will execute all consecutive case statements until it finds next break statement or till the end of switch case block.
 
Your Name Your Email-ID
Your Answer
28. What is the difference between assembler, compiler and interpreter?
 
  • Assembler is a program that converts assembly level language (low level language) into machine language.
  • Compiler compiles entire C source code into machine code.
  • Whereas, interpreters converts source code into intermediate code and then this intermediate code is executed line by line.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 7 of 15