November 25th, 2012, 05:11 PM
Output each character from array!
I had in my last exam this question and my answer was 100% false. Can someone help me?? Thank you...!
The question was:
Complete the following segment of code to make it output each character from the start of the declared array(not implemented as a string) up to but excluding any asterik(*) character. The array should be output. Only one while loop containing one putchar() statement may be used.
#define ARRAYSIZE 100
/*assume statements to input the array from the */
/*user have already been coded and included here */
index = 0;
/*put your code in here*/
November 25th, 2012, 10:16 PM
You probably failed because you didn't replace line 12 with code.
Please show your work!
[/code] are essential for python code and Makefiles!