The ones who are crazy enough to think they can change the world are the ones who do.- Steve Jobs
Its bit hard for any ordinary people to believe that "one statement of c program will shutdown your PC". Yes, C programming is capable of shutdown your PC by executing following c program in any of you local C environment.
The following code will shutdown your PC running either in Ubuntu Operating System or Linux Operation System.
#include <stdio.h> #include <stdlib.h> int main() { system("shutdown -P now "); return 0; }
Your system will shutdown within 1 minute...
The following code will shutdown your PC running in windows Operation System.
#include <stdio.h> #include <stdlib.h> int main() { system("C:\\WINDOWS\\System32\\shutdown /s "); return 0; }
Your system will shutdown within 1 minute...
We may make mistakes(spelling, program bug, typing mistake and etc.), So we have this container to collect mistakes. We highly respect your findings.
© Copyright 2019