Question 8
Which of the following statements correctly declares and initializes an integer variable named age in C?
int age = 25;
age = 25;
int *age = 25;
age = int(25);
Which of the following statements correctly declares and initializes an integer variable named age in C?
int age = 25;
age = 25;
int *age = 25;
age = int(25);
Correct answer
int age = 25;
Question 8 of 16 in the IIT Madras BS Introduction to C Programming (Intro to C Programming) Qualifier paper sat on 13 Apr 2025, in the January 2025 term (IIT M ES REATTEMPT AN EXAM QEQ1 13 Apr 2025). It carries 3 marks.