how does the command line interpreter pass parameters to int main?
Does the kernel use a callback function to get int main's apinumber in the table from the process environment block in order to pass the parameters to int main by calling it?
Printable View
how does the command line interpreter pass parameters to int main?
Does the kernel use a callback function to get int main's apinumber in the table from the process environment block in order to pass the parameters to int main by calling it?
I am a beginner to understanding how programs work and I was curious .
Thx for the reply :)
Start by reading rather than asking questions. That way you can cover a wide range of technical areas in a short time. Asking questions in a forum is the slow way.
Here's a good place to start:
http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
For more, search bing or google for "processes and threads explained".
Read about as much as you can and try the code samples in what you read.
If you get stuck, post questions.