Q. What is the correct syntax to declare a variable in C?
β
Correct Answer: (A)
data_type variable_name;
Explanation: In C language, the correct syntax to declare a variable is:
data_type variable_name;
Where, data_type is the type of data (such as int, char, float, etc) and variable_name is a valid identifier. For example: int age;
data_type variable_name;
Where, data_type is the type of data (such as int, char, float, etc) and variable_name is a valid identifier. For example: int age;