Hello,
I want to do this:
char a[5];
//run some code here
//then
a[]={0,1,2,3,4}; //**compiler doesn't like it
but I don't want to do this:
a[0]=0;
a[1]=1;
a[2]=2;
a[3]=3;
a[4]=4;
Do you know any way to populate an array at run time with numbers, not a string (i.e., not a ="hello"), in one go, instead of defining every element individually?
Thanks,
Raed