M
Madhu
I would like to know how the following will be handled in the .net
framework:
Pl. don't pay attention to the syntax
int a[10]
int b
a[1]=2
a[2]=2
a[3]=2
a[5]=2
a[7]=2
a[8]=2
b=a.length % using the in-built function to find the array length
Rest of 'a' is not assigned any valu
I get the value of 'b' to be the length of first n values of 'a' which
have been initialized, i.e. the array is treated as complete once an
uninitialized array element is encountered.
Can someone give me an insight into why this is so?
Thank you.
framework:
Pl. don't pay attention to the syntax
int a[10]
int b
a[1]=2
a[2]=2
a[3]=2
a[5]=2
a[7]=2
a[8]=2
b=a.length % using the in-built function to find the array length
Rest of 'a' is not assigned any valu
I get the value of 'b' to be the length of first n values of 'a' which
have been initialized, i.e. the array is treated as complete once an
uninitialized array element is encountered.
Can someone give me an insight into why this is so?
Thank you.