How to Declare, Initialize and Display value of int variable in C (Hands-on) | C Programming

Опубликовано: 15 Октябрь 2024
на канале: Aptuts
8,764
98

In this video, you will learn how to declare an integer (int) variable in C, initialize the variable and display the value of the variable on the output screen using printf statement.

Integer variables in C are the variables capable of holding integer numbers i.e., whole numbers like 0, 1, 2, 3, and so on.

How to declare an int variable in C?
In order to declare an int variable, you can do so by following the below syntax:
int variable_name;

How to initialize an int variable in C?
You can use the '=' assignment operator in order to assign value a value to a variable.
For e.g., count = 10;
Here, value 10 will be assigned to a variable named "count"

Some helpful resources ##
C programming course for beginners - https://www.aptuts.com/c-programming
Learn C programming online for FREE - https://www.learnconline.com/
Follow me on Facebook page - http://fb.com/aptuts
Free C programming cheatsheet - https://www.aptuts.com/free-c-cheatsheet

#aptuts #howToDeclareIntVariableInC #CProgramming