TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to Shutdown and Restart You Laptop or PC with C Program
Krishna Rajput Singh
Jan 05
2016
Code
1
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
#include <stdio.h>
#include <stdlib.h>
int
main()
{
system(
"C:\\WINDOWS\\System32\\shutdown /s"
);
// within minute your system will be shutdown after run program
return
0
;
}
C Language Program
C