C [ 2 How to run C program in windows PC]

in #writing8 years ago
  • How to run C program in windows PC:

              In windows PC following steps are given to run C program.
                 Requirements to run C program
    
  1.   MinGW-3.1.0-1.exe
    It is compiler.
    

Click here to download.

  1.   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.
    

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

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.

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

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.

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

Step 8: Then type a.exe and enter.

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

 Step 10:  Now type exit.
Sort:  

Congratulations @tusharvasave! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published 4 posts in one day

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Coin Marketplace

STEEM 0.12
TRX 0.33
JST 0.032
BTC 121276.65
ETH 4288.54
USDT 1.00
SBD 0.73