Course Content

  • datatypes

Course Content


A variable is nothing more than a name for a storage region that our programmes can access. Each variable in C has a type that governs the memory size and layout, the range of values that can be stored inside that memory, and the set of operations that can be applied to the variable.

There are many types of variables in c:

  • local variable.
  • global variable.
  • static variable.
  • automatic variable.
  • external variable.

Any attribute, number, or quantity that can be measured or counted is referred to as a variable. A data item is another name for a variable. Variables include age, sex, company income and expenses, country of birth, capital expenditure, class grades, eye colour, and vehicle type.

If the variable is not a member of a class and is in the scope of a function, I always initialise it because otherwise you'll get warnings. Even though this variable will not be utilised until later, I prefer to assign it when the variable is declared. In the function Object() { [native code] } of your class, you should initialise member variables.

Tokens in C are the basic component or building block for writing a programme in the C language. Let's take a look at each token one by one. In C, identifiers are used to name variables, functions, arrays, structures, and other objects. In C, identifiers are user-defined words.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere