What are variables in C?
a) Named storage locations
b) Functions
c) Constants
d) Data types
Answer:
a) Named storage locations
Explanation:
Variables in C are named storage locations in memory that hold data. They are used to store information that can be used and manipulated throughout the program. Each variable in C has a specific data type that determines the size and type of value it can hold.
Understanding variables is fundamental to programming in C, as they are used to store data that the program needs to function. Properly declaring and using variables helps in writing efficient and error-free programs.