How to open your exe file? I used all possible functions like getch() ; and system ("pause") .... Still it's not waitng screen | SoloLearn: Learn to code for FREE!

-1

How to open your exe file? I used all possible functions like getch() ; and system ("pause") .... Still it's not waitng screen

5/20/2020 12:18:32 PM

Amisha Jha

2 Answers

New Answer

0

#include <stdlib.h> #include <stdio.h> int main() { (void)system("C:WindowsSystem32notepad.exe"); return(0); }

0

1. System is evil, don't use it. https://www.cplusplus.com/forum/articles/11153/ 2. getch() is a nonstandard function and is present in conio.h header file which is mostly used by MS-DOS compilers like Turbo C. It is not part of the C standard library or ISO C, nor is it defined by POSIX.