214k views
3 votes
In Programming "int size = 5;" or "char text ="abc;" are known as?

User Petebowden
by
8.0k points

2 Answers

7 votes

Answer:

The given statement contains both and initialization in one single statement. This is the fastest way to do programming though only few languages allow this particular feature.

Step-by-step explanation:

Creating a variable to hold a value and associating the variable to a particular data type is called declaration statement.

From the given question, int size; and Char text; are the declaration statement.

Assigning initial value to the declared variable viz size = 5, text = abc is called initializing the variable.

User Zeycus
by
7.8k points
0 votes

In programming they are called Initialized variable.

User Arnaud Grandville
by
8.2k points