I’ve always wondered this, and still haven’t found the answer. Whenever we use “cout” or “printf” how exactly is that printed on the screen?. How does the text come out as it does…(probably quite a vague question here, ill work with whatever you give me.). So basically how are those functions made?..is it assembly?, if so where does that begin?. This brings on more questions like how on earth have they made openGl/directx functions..
break it down people break it down.:)
Here’s one scenario, with abbreviations:
printforcoutput characters into a buffer in the user program’s address space.printfasks for the buffer to be emptied early. Either way, the I/O library calls the operating system, which copies the contents of the buffer to its own space.It is amazing that the bear dances at all.