Home >> Computer Language >> C
Q.
Can you use the function fprintf()to display the output on the screen?
Answer :
Yes you can use fprintf() function to display output on the screen
Posted By : aman
fprintf( stout, "Welcome %s", name );
this line prints Welcome on the console
If we want to print in the file "Welcome" then put the file pointer in the place of stdout
eg:fprintf( fp, "Hello %s", name );
this line prints Welcome on the console
If we want to print in the file "Welcome" then put the file pointer in the place of stdout
eg:fprintf( fp, "Hello %s", name );
Posted By : akash