if I have a for loop like this:
(1)is there a certain rise why it won't come out and print the array? I am pretty sure it is getting the values but it wont break out and do the print.Code:for (i = 0; i < 6; i++) { z[i] = a[i]-48; scanf("%d", z[i]); } printf("%d", z);
(2)Also is there anyway once I have the entire array Z that I can make it all one integer? Like say I put integer by integer ('9' ,'8', '7') into th array so that the array is ('987') is there a way that I can set the 987 as an integer ninehundred and eighty seven?