1
0 Comments

Variables and Constants in C Programming

In this tutorial, we will learn variables and constants in c programming, and the rules for naming a variable, and the difference between variables and constant. So let us start.
https://usemynotes.com/variables-and-constants-in-c-programming/

What are the variables in a c programming language?

A Variable is a strong area that is used to store the data. The Variable stores the data and during the time of program execution the value of the variable can be changed. The value of the Variable can be changed even after the declaration of value.

Every variable should have a unique name to indicate the storage area properly. Variables are just a symbolic representation of the memory location at which the data is stored.
What are the types of variables in c?
Global variable

It is a variable of the function which is declared outside. It can be used in any of the functions. It can be declared anywhere outside the block. The value of the global variable can be changed by any function inside the code.
Local variable

on February 12, 2021