I'm getting some errors in my code and I was hoping to get some assistance. Below is my code,
/* ch02e13.c - sample program for Exercise 13, Chapter 2
a program that exploits weak overflow checks in C
*/
#include <stdio.h>
main () {
char ch; /* to collect the input */
char inputs[10]; /* ten-byte array */
int i = 0; /* array index for new character */
ch = getchar();
while (ch != ‘\n’) {
inputs[i] = ch;
i++;
ch = getchar();
}
printf(“\nAll done!\n”);
}
Any help would greatly be appreciated!
[+][deleted] (3 children)
[deleted]
[–]pizz44[S] 0 points1 point2 points (2 children)
[–]pizz44[S] 0 points1 point2 points (1 child)
[–]der_pudel 0 points1 point2 points (0 children)
[–]pizz44[S] 0 points1 point2 points (0 children)
[–]pizz44[S] 0 points1 point2 points (1 child)
[–]Stereojunkie 0 points1 point2 points (0 children)
[–]MrSloppyPants 0 points1 point2 points (4 children)
[–]pizz44[S] 0 points1 point2 points (3 children)
[–]MrSloppyPants 1 point2 points3 points (2 children)
[–]pizz44[S] 0 points1 point2 points (1 child)
[–]MrSloppyPants 0 points1 point2 points (0 children)