Computer Science, asked by vijaychand8302, 1 year ago

How do we initialize a variable in C++?

Answers

Answered by Anonymous
1

Variable Declaration and Initialization in C Programming Language

The type is one of C's data types like int, chat, double etc.

The identifier is the name of the variable. ...

You can initialize the variable by specifying an equal sign and a value. ...

To declare more than one variable of the specified type, use a comma-separated list.

PLEASE MARK BRAINLIEST

Answered by SerenaBochenek
0

datatype variable_name=value ;

Explanation:

Initialize the variable means giving the value to the variable. It could be initialized throughout any block declaration argument.

Syntax to declared any variable

For example:

⇒ int ab=90;  // initialization of variable  

here, "ab" is the variable which hold 90 value in it

Learn more:

https://brainly.in/question/15991287

Similar questions