You are here: Home / Topics / Why do we need to define any variable in a program?

Why do we need to define any variable in a program?

Filed under: C Programming on 2022-07-05 21:42:03

The variable definition in C language tells the compiler about how much storage it should be creating for the given variable and where it should create the storage. Basically, the variable definition helps in specifying the data type. It contains a list of one variable or multiple ones as follows:
type variable_list;

Do you want to learn MCQ Questions of C Programming?

About Author:
P
Parvesh Kanani     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.