- Size is Specified Directly
- Size is Specified Indirectly
- Here Size of an Array is Specified Directly.
- Example :
int num[5] = {2,8,7,6,0};
- Size of An Array : 5
- As at Compile Time All Elements are at Specified Position So This Initialization Scheme is Called as "Compile Time Initialization"
- Here Size of an Array is Specified Indirectly.
- Example :
int num[] = {2,8,7,6,0};
- Indirectly Compiler Counts the Number Of Elements Written Inside Pair of Braces and Determines the Size of An Array .
- Here Array Size is 5
- This Initialization Scheme is also Called as "Compile Time Initialization"
0 Comments:
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email