Define variable with an example. Write the syntax for declaring a
variable.
Answers
Answered by
3
Answer:
Example - Declaring a variable and assigning a value
You can define a variable as an integer and assign a value to it in a single declaration. For example: int age = 10; In this example, the variable named age would be defined as an integer and assigned the value of 10.
Answered by
2
Answer:
The word syntax means the grammar of a programming language. We can talk about the syntax of just a small part of a program, such as the syntax of variable declaration
Similar questions