The general order of initialization is:
Is an important thing to do.
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
Initialization. Hint: your compiler might warn you, neverignore warnings if you aren't absolutely sure what they mean.
no
No. Data hiding is a feature of object oriented programming. C does not support OOP, and therefore has no private member access. All members are public in C.
Is an important thing to do.
Not initialized variable: int myInt; Initialized variable: int myInt = 10;
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
Initialization. Hint: your compiler might warn you, neverignore warnings if you aren't absolutely sure what they mean.
Initialization of objects means to provide an initial value for the object. This is usually done by the constructor, or it can be done with an assignment statement.
Use "typedef" : both in C and C++.
Initialization is nothing but assigning some value to a parameter. ex :- int a; // Defination of an integer variable a = 3; // Initialization of the variable a
no
225 Rs. after discount........
doesn't return the value.
Constant data and constant functions.
No. Data hiding is a feature of object oriented programming. C does not support OOP, and therefore has no private member access. All members are public in C.