Hi, i am trying to define a 256 unsigned character array, with [0]=0, [1]=1 etc rigth up to [256]=256.
This is what i am using as the function
up to [127], which equals 127, all are corret, however [128] and everything after this is erroneous. I am guessing this is because of the int value of n, however how can i modify this correctly?Code:int n=0;
char ga[256];
while (n!=256)
{
ga[n]=n;
n=n+1;
}
Thanks