Notification texts go here Contact Us Buy Now!

17 | Declare Variables

Declare Variables

The syntax to declare variables in C programming is:

int age;

Here,

  • age is a variable
  • to create this variable, we have used the int keyword that specifies integer data type

Hence, age can only store integer data; it can't store data of any other type.

But don't worry, we'll learn about other types of variables later on.

Idea Emoji Note: The ; at the end is mandatory in C programming. It indicates the end of the statement.

About the Author

Coding | Riding | Music, Embracing the beauty of code, the thrill of the ride, and the rhythm of life. Let's explore the journey together!

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.
Code Copied!