Sunday, August 2, 2009

In C language we can write in array like b=3[a]?

No you can't. Because you can't have variable names as numbers but you could have b=a[3] which is the 3rd element of the array a

In C language we can write in array like b=3[a]?
No, variable names cannot be numbers...
Reply:Yes , u can.
Reply:Sure you can write this... You will get the value of a[3] in the variable b. a[3] can be alternatively written as 3[a]. Note that this is valid only for one dimensional arrays. Even it may be compiler specific.
Reply:Surely no because here the variable should be used to store the base address of the array


No comments:

Post a Comment