No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I wrote a simple echo program, which reads standard input character-by-character and then prints it to standard output character-by-character. [code] #include <stdio.h> int main() { int c; while ((c = getchar()) != EOF) { putchar(c); } return 0; } [/code] I was expecting it to break out of the while … |
|
I made a simple program: [CODE] #include <stdio.h> int main() { printf("Please enter a value: "); int uservalue; scanf("%d", &uservalue); printf("The value entered was: %d", uservalue); return 0; } [/CODE] As you probably already know, this program has many faults. The ones I found are: 1) The program malfunctions weirdly … |