Write c++ statement for declaring a variable w and initialize 786 to it
Answers
Answered by
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
1
int w = 786;
Data type = int
variable name = w
value of the variable = 786
Give semicolon at the end.
Similar questions