I am new to multiple processes in C.
Once a new child process is created in C, what all code is copied to that processes.
I am confused as I am trying to create a child process but what would happen in its int main() function, since I am creating this child process from some other function.
I am working on Windows XP, VS2005.
I apologize for the confused question.
I would like to request for some documentation which would help me understand how to create and work with new processes in C
On Windows, you should have a look at the winapi CreateProcess() function which creates a new process that runs the command you want, also check this example in MSDN.