when you have a program like:
I was wondering exactly how it compiles with the string in the middle of the code. I had THIS idea:Code:#include <stdio.h> int main() { printf("This is my string\n"); return 0; }
It runs through the code building the tokens etc. It takes the string, "This is my string\n" and puts it in the TXT memory and then when the program calls the std printf() it replaces the string I typed with a pointer to that area in memory.
I just want to know how it really works. If anyone could explain it or point me to a place where I could discover it, that would be appreciated. Thank you
-LC