Quiz Space

Programming in C · End Term · 28 Apr 2024 · January 2024 term

Programming in C End Term 28 Apr 2024 — Question 7

Question 7

+3 marksOne correct option

What does the #define directive do in C preprocessor?

  1. A

    Declares a variable with the value to initialize it.

  2. B

    Defines textual symbols which are replaced by their values before compilation.

  3. C

    Defines a function which may have parameters

  4. D

    Includes a header file.

Show answer

Correct answer

  • B

    Defines textual symbols which are replaced by their values before compilation.

Question 7 of 25 in the IIT Madras BS Programming in C (Programming in C) End Term paper sat on 28 Apr 2024, in the January 2024 term (IIT M DEGREE AN EXAM QDB3 28 Apr 2024). It carries 3 marks.

This question was also asked in

More questions from this paper

  1. Q1Which of the following statements about recursion in C programming is not true?
  2. Q2Let a pointer variable ptr hold the address of another integer variable var. Which of the following statements will cor…
  3. Q3Which of the following statements is not true about arrays in C?
  4. Q4Which of the following statements is true about structures in C?
  5. Q5In C programming, which memory region is typically used for dynamic memory allocation?
  6. Q6Which function is used to write data to a file in C programming?
  7. Q8Figure question
  8. Q9Figure question
  9. Q10Figure question
  10. Q11Figure question
  11. Q12Figure question
  12. Q13Figure question
  13. Q14What will be the output of the above program?
  14. Q15Figure question
  15. Q16Figure question
  16. Q17Figure question
  17. Q18Figure question
  18. Q19Figure question
  19. Q20Figure question
  20. Q21Select the correct statements from the below that dynamically allocate memory to hold 3 integer pointers. Assume size o…
  21. Q22Figure question
  22. Q23Figure question
  23. Q24Figure question
  24. Q25Figure question