Computer Science, asked by shreyasms086, 9 days ago

Give the syntax of declaring a variable.

Answers

Answered by tajit9914
0

Answer:

here's is your ans

Explanation:

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.

Answered by omkardengi08
0

Answer:

Declaration:

Syntax:

<Data type> variable_name;

Ex:int a;

Initialization:

Syntax:

<Variable_name>= value;

Ex:a=10;

Similar questions