How are variable declaned in C++
Answers
Answered by
1
Answer:
Mark me the Brainliest plz
Explanation:
Follow me plz
Attachments:
Answered by
0
"data_type variable_name;" is a sytax to declare a variable.
Explanation:
- The variables in c++ are used to hold the value which can be used anywhere in all over the program.
- To use the variable any user needs to declare a variable first. This will tells the types of the variable. This is used to tell which type of value will hold by the variable.
- The syntax to declare the variable is data_type variable_name;
- For example, If the user wants to declare an integer type variable, then he needs to define the variable as integer type like-- "int variable_name;".
Learn More:
- Data type: https://brainly.in/question/6472516
Similar questions