Thursday, February 14, 2008

Indexing of array elements

Can we use char/float variable for indexing of array elements? For ex,
int arr[10];

arr[ j ] =3;
whether j can be of type char or float?

2 comments:

Market Colorz said...

I didn't knew, you were C Enthusiat, Suriya Bhai... :)

Suriya Akter said...

Bhai I have taught C/C++ languages for more than 4 years. Still i am just at the surface hence my blog has the title "C is Sea".