Heaped cone as varied from half to level..
Chat with our AI personalities
If you define a variable inside of your function, the variable can be referred and used only inside of that function. It means that you will not able to use the variable in another function (including main). Area of code where your variable can be used after declaration is usually called visibility of the variable.
Nothing.
same the types used in C. that is int...char...float...
Instantiation is creating the instance of the variable/object . While Initialization is to provide the variable with some value. int i; // i is an instance of an integer i=10; //initialised with the value 10
A good variable name is one that is clear, related to the data it stores. Also, you should try to avoid confusions with other variables.