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 |
What is #define size in c?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
How pointers are declared?
Hi, main() { } Is a user defined function or Built in Functionn
Can we initialize extern variable in c?
1. main() { printf("%d",printf("HelloSoft")); } Output?
Print all the palindrome numbers.If a number is not palindrome make it one by attaching the reverse to it. eg:123 output:123321 (or) 12321
in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?
What is break statement?
Explain the use of fflush() function?
What is header file definition?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.