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 |
Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV
write a program that will accept two integers and will implement division without using the division operator if the second value is an odd number and will implement multiplication without using multiplication operator if the second value is an even number.
Every time i run a c-code in editor, getting some runtime error and editor is disposing, even after reinstalling the software what may be the problem?
What are the various topologies? Which one is the most secure?
What is anagram in c?
How can draw a box in cprogram without using graphics.h header file & using only one printf(); ?
Write a factorial program using C.
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
while initialization of array why we use a[][2] why not a[2][]...?
what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1
How can I call a function, given its name as a string?
please give me some tips for the placement in the TCS.