C Programming Question and Answers

17. What is the modulus operator?
  The modulus operator outputs the remainder of a division. It makes use of the percentage (%) symbol.
 
Your Name Your Email-ID
Your Answer
18. What are the logical operators in C?
  Logical operators are used to perform logical operations on the given expressions. There are 3 logical operators in C language. They are,
  • logical AND(&&)
  • logical OR(||)
  • logical NOT(!)
 
Your Name Your Email-ID
Your Answer
19. What is the default statement used in switch case in C?
 
  • Switch case statements are used to execute only specifies case statements based on the switch expression.
  • If switch expression does not match with any case, default statements are executed by the program.
 
Your Name Your Email-ID
Your Answer
20. Where is the function declared as static stored in memory?
 
  • Yes static keyword would not affect where the function gets stored, even if it is static a function will always be stored in stack.
  • But it hides the function from being used in other files other than in which it is declared.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 5 of 15