answersLogoWhite

0

it should not start with _ or digit.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

Is it necessary to initialize the const variable in c?

A constant variable cannot have its value changed at program run time.


What is a constant as used in C programming?

A variable of which the value cannot change. Example of its usage: const int foo = 5;


How can you change the value of a constant variable in C?

You can change a static variable by putting the static variable into a function that has operations that you intend to execute upon the variable. Example, you want to change the static variable to another value or make an addition of 2. Put the source code inside a function with the static variable declared locally within the function.Every time you call the function, the static variable value will change. Take note that the static variable retains the last value you declared it in your function call.A more terse answerLocal variables declared as static are changed as normal; they are special in that their values persist across function calls.


What are variable start the us for naming variyable?

In the U.S., variable names in programming typically follow specific conventions: they must start with a letter (A-Z or a-z) or an underscore (_), and they cannot begin with a digit. After the first character, variables can include letters, digits (0-9), and underscores. Additionally, variable names are case-sensitive, meaning "Variable" and "variable" would be considered different identifiers. It's also a best practice to use descriptive names that convey the purpose of the variable.


Difference between array and pointers in c plus plus?

A pointer is simply a variable that can store a memory address and has the same purpose in both languages. The only real difference is that C++ pointers can point at objects (instances of a class) and indirectly invoke their methods, whereas pointers in C (which is not object oriented) cannot.

Related Questions

Is it necessary to initialize the const variable in c?

A constant variable cannot have its value changed at program run time.


In most languages the first character of a variable name cannot be a number?

In most programming languages, variable names cannot start with a number. Variable names must start with a letter, underscore (_), or dollar sign ($). This rule is in place to differentiate variable names from numeric literals.


What are variables in C?

variable is must start with letter or ( _ ) under score ex : int a; means a is a variable we can store value on it


20 c4 3c3 5c2 is this a monomial?

No. A monomial cannot have the variable c to different powers.


Differentiate between C Constants and C variables?

A constant value cannot be changed once set. A variable can be changed whenever you want.


What is the constant variable in Avogadro's law?

The question is about an oxymoronic expression. A constant cannot be a variable and a variable cannot be a constant!


C plus plus program to add a letter in a permanent letters alphabetically?

If by permanent you mean constant, you cannot change something that is constant, therefore you cannot add to it (letters or otherwise). It has to be variable. Constant and variable are mutually exclusive terms.


What is a constant as used in C programming?

A variable of which the value cannot change. Example of its usage: const int foo = 5;


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

causation


What is the difference between a do while loop and a for loop in c?

the counter variable cannot be initialized in while loop before entering into the block.


How can you change the value of a constant variable in C?

You can change a static variable by putting the static variable into a function that has operations that you intend to execute upon the variable. Example, you want to change the static variable to another value or make an addition of 2. Put the source code inside a function with the static variable declared locally within the function.Every time you call the function, the static variable value will change. Take note that the static variable retains the last value you declared it in your function call.A more terse answerLocal variables declared as static are changed as normal; they are special in that their values persist across function calls.


What is variabale?

It is spelled variable, and is simply a placeholder. You can assign a value to a variable, which points at the memory base of the value. A variable can be called almost anything, however there are certain things they cannot be named. Read some C programming tutorials for a complete explanation of variables.