Identify the correct argument for the function call fflush
() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above
Answers were Sorted based on User's Feedback
Answer / johnson
Wrong, fflush can be applied to any output stream. Stdout and
stderr, as well as any writeable FILE* will work.
| Is This Answer Correct ? | 25 Yes | 3 No |
Answer / pankaj goswami
d is the right ans because fflush contain all stdin for
standardinput,output and error.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / vinay
BOTH A AND B
The function fflush() clears the buffer associated with a
specified input/output device(stdin or stdout).
| Is This Answer Correct ? | 0 Yes | 4 No |
Is struct oop?
What is the size of enum in bytes?
What are different types of variables in c?
Explain c preprocessor?
I have an array of 100 elements. Each element contains some text. i want to: append a star character to the end of every fifth element remove every second character from every tenth element, and… add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters.
what is the output of the below code? main( ) { printf ( "\nOnly stupids use C?" ) ; display( ) ; } display( ) { printf ( "\nFools too use C!" ) ; main( ) ; }
What is c mainly used for?
What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }
Explain about block scope in c?
What are the different types of linkage exist in c?
Find greatest of two numbers using macro
If null and 0 are equivalent as null pointer constants, which should I use?