Computer Science, asked by khushbukumaris142, 3 months ago

write the syntax and Example for
initalisation of the variable in C++

Answers

Answered by smarakisamantaray564
1

Answer:

This is called variable initialization. Initialization Syntax: variable_name = value; '=' is the assignment operator. It assigns the value specified on its right side to the variable name on the left.

...

For example: The variables declared above can be initialized as follows:

num1 = 5;

num2 = 12.9;

ch='A';

I hope it's helpful for you ✌️

Similar questions