It looks to me like you are printing out the address of array[0]...it also appears that you are trying to return the address of a local variable...
Type: Posts; User: siris1
It looks to me like you are printing out the address of array[0]...it also appears that you are trying to return the address of a local variable...
It looks to me like you want to print how many days exist in each month. Just setup and array with 12 slots...and put array[0] = 30...then its easy. printf(%u\n",array[number]);
Of course this...
Hrmm, if that's the case you could modify each static allocation to dynamic...that might be a lot of work. Yeah I guess all of your static allocation are allocated on the stack...(doh).
This could be achieved by running your program through Valgrind.
Is the code not compiling or is the output incorrect?
-----------------------------
No advance in wealth, no softening of manners, no reform or revolution has ever brought human equality a...