answersLogoWhite

0

How do you name a variable in C?

User Avatar

Anonymous

14y ago
Updated: 8/19/2019

Examples: i, alpha, tmp.

Formal definition:

variable_name --> identifier

identifier --> firstchar [morechars]

morechars --> nextchar [morechars]

firstchar --> A..Z a..z _

nextchar --> A..Z a..z 0..9 _

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is a variable in C language?

variable which is used to specify the values and also we can that values through the variable name


Is the word main an illegal variable name in C PLUS PLUS?

I can tell you that it is not an illegal variable name in C. I do not currently have a C++ compiler installed, but I would assume that it would also be valid in C++.


What is a ponters in c-programming?

with the help of pointers we able to store the memory location of any variable. In c the pointer variable is use to store the memory location of any variable. The pointer variable is define as a simple variable but in pointer variable use a special "*" character at the left most side of name of pointer variable. If any variable name have * it means it is a pointer variable it hold the memory location of variable.


What is the variable in c language program?

A variable is the name for a place in the computer's memory where you store some data.


How do you assign a variable in C?

name = value example: x=1


What is count in c language?

count is a function that counts the variable name.


What is the difference between identifiers and variables in C lang?

a variable having the datattype and name, an identifier is the name of the variable for example int x; here int x; is the variable x is the identifier


What is the name of the C structure type?

The type is struct. The name can be any valid variable name that is not a keyword or other reserved name.


How a variable is declared and initialized during declaration in c?

During declaration, the declaration goes like this: extern <type> <variable-name> or <type> <function-name> (<parameter list>);


What is 'variable' in C programming?

It's a part of the program's data, which has a name,type and value.


What is micro and how it is different from c variable name?

A macro is a variable that has a constant value throughout the program whereas a C variable is an identifier whose value can differ from function to function, it can be incremented or decremented whereas the value of a macro remains same .


When an experiment showes that one variable makes another variable change and no other variable has any effect what is the experiment showing?

causation