Can you use the function fprintf() to display the output on the screen?

Showing Answers 1 - 6 of 6 Answers

veena

  • Dec 15th, 2006
 

yes we can

#include <stdio.h>

#include <conio.h>

void main()

{

fprintf(stdout,"sdfsdf");

getch();

}

fprintf() accepts the first argument which is a file pointer to a stream. the stdout is also a file pointer to the standard output(screen).

  Was this answer useful?  Yes

Helal

  • Jan 28th, 2016
 

Which function is used to display the output on the screen?

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions