write a syntax to declare a variable
please answer fast!! I'll make you as brainliest
Answers
Answer:
A variable is the name of memory blocks, whose value can be changed at anytime (runtime), we can declare a variable by using following syntax: [storage_class] data_type variable_name [=value]; Here, [storage-class] and [=value] are optional. Note: if storage classis "static", initialization value must be provided
Explanation:
Answer:
Explanation:
he syntax to declare a new variable in C++ is straightforward: we simply write the type followed by the variable name (i.e., its identifier).
Variables in C Language
The naming of an address is known as variable. ...
A variable in C language must be given a type, which defines what type of data the variable will hold.
Declaration of variables must be done before they are used in the program
Creating a variable in JavaScript is called "declaring" a variable. You declare a JavaScript variable with the var keyword: var carName; After the declaration, the variable has no value (technically it has the value of undefined ).