| PREV |
Programs |
NEXT |
| |
(77 / 301) * |
|
|
|
|
Write a program to have the output go two places at once (to the screen and to a file also)
|
You can write a wrapper function for printf() which prints twice.
myprintf(...)
{
// printf(); -> To screen.
// write_to_file(); -> To file.
}
A command in shell, called tee does have this functionality!
|
| PREV |
COMMENTS INDEX PRINT |
NEXT |
Last updated:
November 3, 2005
www.cracktheinterview.com - Your destination for the most common IT interview questions, answers, frequently asked interview questions (FAQ), C Programs, C Datastructures for technical interviews conducted by the top IT companies around the world!
|
|
|