Computer Science, asked by jpraja, 11 months ago

how are variable declaned in C++​

Answers

Answered by meenadaksh1984
0

Answer:i dont know

Explanation:

Answered by AskewTronics
0

The syntax to declare a variable in c++ programing is "data_type variable_name;"

Explanation:

  • The variable is used to holds some value which can be used anywhere in the program for any task of the program.
  • If there is no variable then the value is not identified and used in any other place in the program.
  • For example, if a user wants to print the value of the addition of 4 and 5, then the variable is declared as integer. it is because the addition of 4 and 5 gives the result as an integer.
  • To do this the user can declare a variable like "int add;", and assign the value like "add=4+5". The add is a variable that can use the added value of 4 and 5 in anywhere in the current program.

Learn More:

  • C++data type : https://brainly.in/question/6472516
Similar questions