Programming with C

⌘K
  1. Home
  2. Docs
  3. Programming with C
  4. Input/Output statements
  5. Variable

Variable

A variable is an entity whose value can vary during the execution of a program.

Declaring variable

[storage_class_specifier] [type_qualifier][type_modifier] type identifier;

Defining variable

[storage_class_specifier] [type_qualifier][type_modifier] type identifier = value;

The terms enclosed within square brackets is optional

Example

int variable;
static int variable;
static const unsigned int variable;

Views: 0

How can we help?

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments