title: How to call the main() of a C program from a different C program?
body: <p><img src="https://i.stack.imgur.com/2Vux0.png" alt="Query">
  This is the snippet where I call the main of another class by including its header file...
  As the title says, I want to invoke the main() of a program with parameters from another C program.
  Example:
  Suppose there are two programs:
  <code>imain.c</code> and <code>another.c</code></p>
  
  <p>I wish to call the main() of <code>imain.c</code> from the body of main in <code>another.c</code> and pass parameters..</p>