In this post, the answer said Flushing: To sync the temporary state of your application data with the permanent state of the data (in a database, or ...
In this post, the answer said Flushing: To sync the temporary state of your application data with the permanent state of the data (in a database, or ...
Select always returns 0 in an input file I wrote a function function that receives FILE* and checks if it is ready. The function: int ioManager_nex ...
Here is my code: It displays "Hello" for a second, does nothing for another second, and then goes straight to "!" I have tried to change the sleep ...
I am reading this lecture and found this following code sample which I modified to this: I am sharing two different outputs with the only change in ...
I'm trying to understand what is behind this behaviour in my parent process. Basically, I create a child process and connect its stdout to my pipe. T ...
I'm using the following code, and when I'm picking 's' for an example, the inner function runs and Im using scanf("%d") in the inner function and the ...
This is my code for two functions in C: So, with void getlinee(char *str, long num) function I want to get user input to first string char name[STR ...
I'm learning c and I got stuck in some codes as below from a tutorial. and the result they got is which is out of order but what I got is whi ...
My main problem here is that I have two strings and a float to read. The strings' size is 10 bytes, but I should be able to read no matter what input ...
help please this doesnt work properly input omayma.firstname : AAAAAAAAAAAAAAAAAAAAAAAAAAA omayma.lastname : BBBBBBBBBBBBBBBBBBBBBBBBBBBB output : o ...
Here is the simple code after fflush() we are not getting the expected output. We expect "Hello World file2" but it is showing some random garbage val ...
The following code gets TLE (time limit exceeded) if the standard output is not flushed. How does flushing the output buffer help to overcome TLE? ...
I am in a programming class since 2 weeks and have some trouble with scanning keyboard input an assigning it to a variable in C. I can compile an r ...
So I was doing an assignment for a class in which I have to perform basic array functions for an array of structures and in taking input my program cl ...
I'm new to C, sorry if my question is too basic.I often see code like: my guess is that it won't print output if the buffer is not full therefore y ...
So I'm new to coding in C and coding in general. I'm learning with a book and a code in there just won't work and I don't know why. It's probably a tr ...
I learned that stdout is line buffered, and buffer is automatically flushed under several circumstances (1) when the buffer is full, (2) when print a ...
I have a simple question (I think so) about fflush() in C++. Every time I write some code to input string in C++, I have to try many many ways because ...
I'm getting some weird results, while trying to write data to files in C.<br/> I thought that fclose() closes the *FILE and flushes the data fro ...
what different between fflush(FILE* stream) and fflush(NULL) at c? I know that fflush(NULL) flush all the stream what is fflush(FILE* stream) do? ...