Identify the correct argument for the function call fflush
() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

2729


Explain what are bus errors, memory faults, and core dumps?

1040


What is self-referential structure in c programming?

909


What are directives in c?

755


all c language question

2193


Explain how can I manipulate strings of multibyte characters?

1001


What are structure types in C?

887


What is the sizeof () operator?

815


How to write a code for reverse of string without using string functions?

1849


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

1262


What is the difference between array and linked list in c?

882


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3016


What happens if you free a pointer twice?

828


Is there a way to compare two structure variables?

873


What is the difference between abs() and fabs() functions?

882