Hi,
Just for fun (I have been out of C for some weeks) I coded some programs. In one of them I used this:
I decided to replace it by:Code:int decs[512];
I use this in a program to convert roman numbers to decimal numbers. When I use the second line, XLV = 45 (that's ok) but MCI = 1076 and MM = 1983 ?? It's late here, so it could be a stupid mistake.Code:int *decs = (int *) malloc(NUMBER_OF_INTS_NEEDED * sizeof(int));