How to run another program from C program

1 Answer

0 votes
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv) 
{ 
    system("calc"); // calc.exe is in c:\Windows\System32\
    
    return(0);
}

/*
run:

Open windows calculator

*/

 



answered Jun 11, 2015 by avibootz
edited Jun 11, 2015 by avibootz

Related questions

1 answer 330 views
3 answers 446 views
1 answer 250 views
250 views asked Jun 23, 2020 by avibootz
1 answer 348 views
1 answer 208 views
208 views asked May 9, 2023 by avibootz
1 answer 223 views
...