I wrote a small program in C.
But when i compile it on my pc it goes to " loop" and my pc crashed.
program :
#include
int main()
{
label:;
system("start sleep.exe ");
goto label;
return 0;
}
Solution required:
1) Check sleep.exe is runing or not in process task list of win7.
2)if not running then run sleep.exe.
3)else goto label: for further checking.
program may be something like this:
#include
int main()
{
label:;
IF process sleep.exe is runing then{goto label:}
system("start sleep.exe ");
goto label;
return 0;
}

Laxmidhar SahooRank #383 · 6.6K reputationPosted Dec 30, 2017, 12:31 AM EST
rohit kumar6 reputationPosted Dec 30, 2017, 12:41 AM EST