OK, I made it through a c programming book and now I am embarking on my first real program, nothing to advanced though I am just going to try and make a monopoly game. I figure if I can do that then I have a pretty good understanding of the basics of c programming.
Thinking ahead though, I am curious about all the c libraries. C is supposed to be a portible language so If I write a simple hello world program only including <stdio.h> on machine A then If I want to run that same program on Machine B, linux for example, then I would have to recompile my soucre code on a compiler under linux right?
And if its just a simple hello world program then nothing should have to be changed in the source code correct. What is the difference between the stdio.h on machine A and machine B? Or are they the same but other libraries are linked to the hello world program that are machine dependent?
My next question is one that confuses me the most. All the basic functions of c are prototyped in headers but defined elswhere correct? So If you wanted to write a program without using anyone else's code (re-inventing the wheel) how would you do that? Say I wanted to print a character to the screen and not you printf or puts or putchar or any other function you can think of. Would I have to use a pointer to put stuff directly in video memory? Or is the c language defined by its include library's. I hope I am making since here cause I am confusing myself trying to ask my questions. Thanks for any answers