Pressing enter doesn’t actually cause an EOF
(“end of file”). You have to signal that you are completely finished with providing input; on Unix you typically do that by pressing CtrlD. On Windows I believe it’s CtrlZ followed by enter, but I’m really not sure about that.
More Related Contents:
- Getting Error while calculation of two float numbers [closed]
- What is my C code not printing # in staircase pattern, this is from hackerrank, I did not pass all test cases, but i can't point out why?
- How can I get this value from function stored properly?
- Program to find sum up-to …..nth number [closed]
- Why is the program keep on asking for the input in C? [closed]
- Segmentation fault using scanf() [closed]
- Is there an interpreter for C? [closed]
- Difference between static memory allocation and dynamic memory allocation
- Return value range of the main function
- How is the working of fflush(stdin) changing the output in below code?
- How can I access a shadowed global variable in C?
- Printf variable number of decimals in float
- building a .so that is also an executable
- Array Type – Rules for assignment/use as function parameter
- scanf getchar function is skipped
- Obtaining peak bandwidth on Haswell in the L1 cache: only getting 62%
- Pointers as function arguments in C
- scanf won’t ask for input the second time [duplicate]
- How can I print the result of sizeof() at compile time in C?
- What are *-devel packages?
- Disable variable-length automatic arrays in gcc
- Where can one find the C89/C90 standards in PDF format?
- Literal string initializer for a character array
- Programmatic way to get variable name in C?
- Create statically-linked binary that uses getaddrinfo?
- Why does gdb evaluate sqrt(3) to 0?
- How to return matrix (2D array) from function? (C)
- How does this bitwise operation check for a power of 2?
- Is there any option to switch between C99 and C11 C standards in Visual Studio?
- What is the function of an asterisk before a function name?