Simple Step by Step Guide For - How to run C program in windows PC by tusharvasave

View this thread on steempeak.com
· @tusharvasave · (edited)
$1.67
Simple Step by Step Guide For - How to run C program in windows PC
#### What Will I Learn?
You can learn How to run C program in windows PC. This tutorial is simple and anyone can understand. If you have C program code then you can run any C program by following these simple step by step guide.

- You will learn - C programming
- You will learn - Execution of C programming
- You will learn - Introduction of C programming

#### Requirements
a. MinGW-3.1.0-1.exe

It is compiler.
Click here to download latest - https://sourceforge.net/projects/mingw/files/latest/download?source=files

b. Notepad.exe or notepad++.exe

Notepad is inbuilt in windows PC. So
you doesn't need to install Notepad application.

- Example Requirement - MinGW
- Example Requirement - Notepad


#### Difficulty

 Basic


#### Tutorial Contents
![image](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513172/v0w16soy0re9jnkcmiv6.png)
  * Introduction:

         C programming language is developed by Dennis M. Ritchie at T Bell Laboratories.
C is general purpose high level language. C programming language was first used in DEC
PDP-11 computer in 1972. C is procedural language. C is first language which is easy to
implement and  easy to understand. C is now widely used and popular programming
language. C is small language comparing to others like C++, C#, Java, Python etc. C has
only 32 keywords. C is basic platform to learn different complicated language. So C
programming language is very important language.
           The UNIX operating system, some UNIX applications and some other operating 
systems are written in C language. C is developed to write program for UNIX operating
system. C is updated version of B language which was developed in 1970. The C
programming language was formalize by the ANSI.
            C is used to make applications, text editor, compiler, operating system etc. There
was many uses of programming languages in computer. C is assembly language.


## * How to run C program in windows PC:

In windows PC following steps are given to run C program.

### Requirements to run C program

a. MinGW-3.1.0-1.exe

It is compiler.
Click here to download latest - https://sourceforge.net/projects/mingw/files/latest/download?source=files

b. Notepad.exe or notepad++.exe

Notepad is inbuilt in windows PC. So
you doesn't need to install Notepad application.

### Step by step procedure to run C program in windows PC:  

Step 1: Install MinGW-3.1.0-1.exe and Notepad doesn’t need to install, because its inbuilt app in                       windows PC. This application install in C:\MinGW\bin directory.

Step 2: Open Notepad.

![image](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513747/de1nw5abdvkimfpihhol.png)


Step 3: Write a c program in Notepad. Here I write simple program in Notepad.

![image](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513662/pptbnbrbmaimkicf36eg.png)

Step 4: Save program to directory C:\MinGW\bin and type file name as hello.c and You can type any file name but .c is compulsory after file name.

![image](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513817/zn7mr2hrgervsy3ahmjl.png)

Step 5: Open command prompt which is inbuilt in windows PC.

![image](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513916/eaw5en4uvudxyhluzpyl.png)


Step 6: Now go to file directory in command prompt by typing cd C:\MinGW\bin and enter then your window will appear like that.

![image](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513957/il03f27anytq3gnek4yg.png)


Step 7: Then type gcc hello.c and enter.

![image](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513986/kvbypsaq75yyfztjjlge.png)


Step 8: Then type a.exe and enter.

![image](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518514011/mfojnv1jwwjp3svtsqsj.png)


Step 9: Then output of the program display as Hello World!

![image](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518514049/i8yu5w22vqkgs38ffvki.png)


Step 10:  Now type exit.


#### Curriculum
This is my first post on utopian.io
    

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@tusharvasave/simple-step-by-step-guide-for-how-to-run-c-program-in-windows-pc">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id32,328,930
authortusharvasave
permlinksimple-step-by-step-guide-for-how-to-run-c-program-in-windows-pc
categoryutopian-io
json_metadata"{"type": "tutorials", "repository": {"owner": {"login": "Alexpux"}, "id": 14447732, "full_name": "Alexpux/MINGW-packages", "fork": false, "name": "MINGW-packages", "html_url": "https://github.com/Alexpux/MINGW-packages"}, "pullRequests": [], "format": "markdown", "image": ["https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513172/v0w16soy0re9jnkcmiv6.png"], "links": ["https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513172/v0w16soy0re9jnkcmiv6.png", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513747/de1nw5abdvkimfpihhol.png", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513662/pptbnbrbmaimkicf36eg.png", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513817/zn7mr2hrgervsy3ahmjl.png", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513916/eaw5en4uvudxyhluzpyl.png", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513957/il03f27anytq3gnek4yg.png", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1518513986/kvbypsaq75yyfztjjlge.png", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1518514011/mfojnv1jwwjp3svtsqsj.png", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1518514049/i8yu5w22vqkgs38ffvki.png"], "app": "utopian/1.0.0", "moderator": {"flagged": true, "account": "roj", "reviewed": false, "pending": false, "time": "2018-02-14T20:39:36.607Z"}, "platform": "github", "tags": ["utopian-io", "tutorial", "programming", "technology", "computer"], "community": "utopian"}"
created2018-02-13 09:43:42
last_update2018-02-14 20:39:36
depth0
children7
net_rshares289,451,781,616
last_payout2018-02-20 09:43:42
cashout_time1969-12-31 23:59:59
total_payout_value1.312 SBD
curator_payout_value0.356 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length4,215
author_reputation1,090,882,005,028
root_title"Simple Step by Step Guide For - How to run C program in windows PC"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (36)
@steemitstats ·
@tusharvasave, Upvote for supporting you.
πŸ‘  
properties (23)
post_id32,329,211
authorsteemitstats
permlink20180213t094507994z-post
categoryutopian-io
json_metadata"{"tags": ["utopian-io"]}"
created2018-02-13 09:45:24
last_update2018-02-13 09:45:24
depth1
children2
net_rshares0
last_payout2018-02-20 09:45:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length41
author_reputation352,100,520,168
root_title"Simple Step by Step Guide For - How to run C program in windows PC"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@tusharvasave ·
thanks @steemitstats
πŸ‘  
properties (23)
post_id32,331,363
authortusharvasave
permlinkre-steemitstats-20180213t094507994z-post-20180213t095855239z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "users": ["steemitstats"], "tags": ["utopian-io"]}"
created2018-02-13 09:58:54
last_update2018-02-13 09:58:54
depth2
children1
net_rshares0
last_payout2018-02-20 09:58:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length20
author_reputation1,090,882,005,028
root_title"Simple Step by Step Guide For - How to run C program in windows PC"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@sahulinkan7 ·
can we discuss some output questions here in steemit
??????????
πŸ‘  
properties (23)
post_id54,941,233
authorsahulinkan7
permlinkre-tusharvasave-re-steemitstats-post-20180630t170136711z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit\/0.1"}
created2018-06-30 17:01:39
last_update2018-06-30 17:01:39
depth3
children0
net_rshares487,426,964
last_payout2018-07-07 17:01:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length63
author_reputation10,797,751,623
root_title"Simple Step by Step Guide For - How to run C program in windows PC"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@laconic ·
Simple and easy to understand. Its really helping for me to running C program and I followed your tutorial. It's really working. Thanks for sharing this tutorial. I am curious about your next tutorial post.
πŸ‘  
properties (23)
post_id32,335,144
authorlaconic
permlinkre-tusharvasave-simple-step-by-step-guide-for-how-to-run-c-program-in-windows-pc-20180213t102057603z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-02-13 10:20:57
last_update2018-02-13 10:20:57
depth1
children1
net_rshares0
last_payout2018-02-20 10:20:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length206
author_reputation6,407,176,188,675
root_title"Simple Step by Step Guide For - How to run C program in windows PC"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@tusharvasave ·
Thanks @laconic for positive comment. Yes. I will share my next tutorial soon.
properties (22)
post_id32,335,462
authortusharvasave
permlinkre-laconic-re-tusharvasave-simple-step-by-step-guide-for-how-to-run-c-program-in-windows-pc-20180213t102240671z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "users": ["laconic"], "tags": ["utopian-io"]}"
created2018-02-13 10:22:39
last_update2018-02-13 10:22:39
depth2
children0
net_rshares0
last_payout2018-02-20 10:22:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length78
author_reputation1,090,882,005,028
root_title"Simple Step by Step Guide For - How to run C program in windows PC"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@techstudio18 · (edited)
Hi @tusharvasave. This tutorial is helping for me to run C program.
properties (22)
post_id32,335,728
authortechstudio18
permlinkre-tusharvasave-simple-step-by-step-guide-for-how-to-run-c-program-in-windows-pc-20180213t102410245z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "users": ["tusharvasave"], "tags": ["utopian-io"]}"
created2018-02-13 10:24:09
last_update2018-02-13 11:30:15
depth1
children1
net_rshares0
last_payout2018-02-20 10:24:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length67
author_reputation362,150,333,012
root_title"Simple Step by Step Guide For - How to run C program in windows PC"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@tusharvasave ·
Thank you @techstudio18.
properties (22)
post_id32,335,928
authortusharvasave
permlinkre-techstudio18-re-tusharvasave-simple-step-by-step-guide-for-how-to-run-c-program-in-windows-pc-20180213t102526747z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "users": ["techstudio18"], "tags": ["utopian-io"]}"
created2018-02-13 10:25:27
last_update2018-02-13 10:25:27
depth2
children0
net_rshares0
last_payout2018-02-20 10:25:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length24
author_reputation1,090,882,005,028
root_title"Simple Step by Step Guide For - How to run C program in windows PC"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@roj ·
Your contribution cannot be approved because it does not follow the [Utopian Rules](https://utopian.io/rules).

- Tutorials for basic programming concepts are not approved. And also the repository you provided is not correct. Since there is no proper repository for general C/C++ contributions, there is no chance of approval.

- Design or video editing related tutorials, gameplay, simple on-screen instructions, ubiquitous functions (Save, Open, Print, etc.) or basic programming concepts (variables, operators, loops, etc.) will not be accepted.


You can contact us on [Discord](https://discord.gg/uTyJkNm).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
post_id32,677,561
authorroj
permlinkre-tusharvasave-simple-step-by-step-guide-for-how-to-run-c-program-in-windows-pc-20180214t204118482z
categoryutopian-io
json_metadata"{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}"
created2018-02-14 20:41:18
last_update2018-02-14 20:41:18
depth1
children0
net_rshares0
last_payout2018-02-21 20:41:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length668
author_reputation12,621,504,053,655
root_title"Simple Step by Step Guide For - How to run C program in windows PC"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000