cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
Standard i/o
Standard i/o
Dec 5, 2014 at 1:44pm UTC
csstudent123
(409)
Does Unix/Linux or OS create a temporary file when I, for example want to display a message such as
printf("%c", var);
or
cout<<"CS"<<endl;
cout or printf calls write() system call and creates a temp file to store the data to display on screen..am i I correct?
Last edited on
Dec 5, 2014 at 1:44pm UTC
Dec 5, 2014 at 1:48pm UTC
koothkeeper
(429)
No temporary files are created. You are correct that the printf() function ultimately calls write(); however, the data is processed at a low level by kernel code responsible for interacting with hardware.
Dec 5, 2014 at 7:47pm UTC
csstudent123
(409)
Thanks
Topic archived. No new replies allowed.