Declaring a variable reserves a name and some space in memory for a variable of the specified type, but doesn't give it a value. Initializing gives the variable a value. Depending on how you're going to use the variable, you can declare it without initializing it and then initialize it later, or declare and initialize at the same time.
EXAMPLE : int value1; // declares integer variable value1 = 6; // initializes integer variable that's already been declared int value2 = 5; // declares and initializes integer variable
HOPE IT HELPS
For a variable, a definition is a declaration which allocates storage for that variable. Initialization is the specification of the initial value to be stored in an object, which is not necessarily the same as the first time you explicitly assign a value to it.
mark as brainlist
The correct option is B) a declaration is used for variables and definitions is used for functions.
int b=10 or any number
Variable declaration tells the compiler about data type and size of the variable. Whereas, variable definition allocates memory to the variable. Variable can be declared many times in a program. But, definition can happen only one time for a variable in a program.please mark as a Brainliest...
right side text ,left arrow hastag
to share and upload more videos on your channel like my channel is free fire game zone