answersLogoWhite

0

Optional is the assignment of the value of course.

int number; //Variable Declaration
int number=2; //Assignment Declaration

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is variable definition in c language?

variable definition means to declare the variable with its value. for example:- int i=10; this statement is a combination of declaration of integer i and assign its value to it,so it is a definition statement Note: assigning a value is not essential.


What specifies a variable's name and data type?

Most programming languages require that you declare all of the variables that you intend to use in a program. A variable declaration is a statement that typically specifies two things about a variable:* The variable's name* The variable's data typePosted by Special:Contributions***EDIT***This can be found on page 56 in "Programming Logic and Design" by Tony Gladdis


What is syntax in c plus plus for declaring a variable?

type variable {[optional array size]} {= optional initializer};


What is Variable declaration and variable initialization?

...are important things in programming. Example: extern int variable; /* declaration */ int variable= 8; /* definition with initialization */


Assigning a value to a variable in a declaration statement is called?

Answer is; initialization *** Edit*** Initialization is correct. Page 59 Programming Logic and Design by Tony Gladdis


IT is false or true declaration is a statement made in private?

False. A declaration is a public statement.


What the syntax of for loop in c?

for (<exp1>; <exp2>; <exp3>) <statement> exp1 and exp3 are optional; statement can be null-statement or block-statement. Correction: All expressions are optional. An infinite loop has no expressions: for(;;);


What is a hole-in-scope?

when inner declaration of a variable hides its outer declaration


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 the meaning of declaration?

Declaration is a formal or explicit statement or announcement. It can also refer to the act of making such a statement in a clear and direct manner.


What is a declaration of value?

Maybe you misinterpret something? There doesnt seem to be a declaration of value, but maybe declaration of variable?


Where the declaration of c variable can be done?

at orchard road on the shop where the variable can be done.