Computer Science, asked by ARAVINDA4503, 2 months ago

Write c++ statement for declaring a variable w and initialize 786 to it

Answers

Answered by Anonymous
4

Answer:

Variable declaration and initialization

The syntax to declare a new variable in C++ is straightforward: we simply write the type followed by the variable name (i.e., its identifier)

Answered by Anonymous
1

int w = 786;

Data type = int

variable name = w

value of the variable = 786

Give semicolon at the end.

Similar questions