How To Shutdown computer using C Program

Today I’m gonna share a small piece of c program to shutdown computer. It won’t take more than a minute to code and compile it. Moreover a newbie C programmer who knows some basics in C program can understand this program.

Below is the source code to shutdown computer using C Program

Shutdown Computer using C

I tried this code in Dev C++ and its working for me.

Note : When you compile and run this program it will only show empty screen and system won’t shutdown. You need to open compile file (filename.exe) directly

Any suggestions?

Come and share your thoughts in commends below.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: