Tuesday, 21 June 2016

compile c program in linux

How to very easily compile C program in linux.The C program in Linux is written same as it is being written in windows.
In Linux, C program also begins with main
and uses standard C library functions.
The only difference is in the procedure of compilation
and execution.





compile c program in linux
compile c program in linux

There are mainly two methods to compile C progam in linux


1.First is Through Netbeans


2.Second is through Vim or vi editor and gcc compiler


Using Netbeans

It can be downloaded from www.netbeans.org. It offers an integrated development environment.
You can create a new C/C++ project in it. Just create Your program and build and execute it using F6


compile c program in linux

Using Vi-gcc combination

  • Vi or Vim is the text editor. You can write your code in this editor.
  • #include<stdio.h>
    void main()
    {
    printf("Hello, I am going to be compiled and run successfully\n");
    }
  • Then just save it eg. hello.c
    . Then save it to any directory say, Desktop.
  • Then on the command prompt, write cd  Desktop.
  • compile c program in linux
  • Now for compiling the c program using gcc compiler, write the command
    gcc hello.c.
  • compile c program in linux
  • After successful compilation, gcc produces a file named as "a.out".
  • compile c program in linux
  • This file contains the machine code of our C program which we have to execute.
  • Now write the command at the command prompt ./a.out
  • Hence the output of our program will be shown on the command prompt
compile c program in linux


This is all about how compile c program in linux, hoping it helped you.
Remember that it is only the beginning,
refer to my other posts to do more fun using c program in linux.

5 comments:

  1. I got my already programmed and blanked ATM card to withdraw the maximum of $5,500 daily for a maximum of 6 years. I am so happy about this because i got mine last week and I have used it to get more then $350,000 and ready to pay more. United Hackers is giving out the card just to help the poor and needy though it is illegal but it is something nice is not like other scam pretending to have the blank ATM cards. And no one gets caught when using the card.
    WhatsApp: +351 965 761 372
    Email : unitedblankatmhackcard@gmail.com

    ReplyDelete
  2. Selling USA FRESH SSN Leads/Fullz, along with Driving License/ID Number with good connectivity.

    **Price for One SSN lead 2$**

    All SSN's are Tested & Verified. Fresh spammed data.

    **DETAILS IN LEADS/FULLZ**

    ->FULL NAME
    ->SSN
    ->DATE OF BIRTH
    ->DRIVING LICENSE NUMBER
    ->ADDRESS WITH ZIP
    ->PHONE NUMBER, EMAIL
    ->EMPLOYEE DETAILS

    ->Bulk order negotiable
    ->Hope for the long term business
    ->You can asked for specific states too

    **Contact 24/7**

    Whatsapp > +923172721122

    Email > leads.sellers1212@gmail.com

    Telegram > @leadsupplier

    ICQ > 752822040

    ReplyDelete

  3. Are you interested in the service of a hacker to get into a phone, facebook account, snapchat, Instagram, yahoo, Whatsapp, get verified on any social network account, increase your followers by any amount, bank wire and bank transfer. Contact him on hackintechnology@gmail.com +12132951376(WHATSAPP)

    ReplyDelete
  4. Selling USA FRESH SSN Leads/Fullz, along with Driving License/ID Number with good connectivity.

    **PRICE FOR ONE LEAD/FULLZ 2$**

    All SSN's are Tested & Verified. Fresh spammed data.

    **DETAILS IN LEADS/FULLZ**

    ->FULL NAME
    ->SSN
    ->DATE OF BIRTH
    ->DRIVING LICENSE NUMBER
    ->ADDRESS WITH ZIP
    ->PHONE NUMBER, EMAIL
    ->EMPLOYEE DETAILS

    ->Bulk order negotiable
    ->Minimum buy 25 to 30 leads/fullz
    ->Hope for the long term business
    ->You can asked for specific states too

    **Contact 24/7**

    Whatsapp > +923172721122

    Email > leads.sellers1212@gmail.com

    Telegram > @leadsupplier

    ICQ > 752822040

    ReplyDelete
  5. **SSN FULLZ WITH HIGH CREDIT SCORES AVAILABLE**

    >For tax filling/return
    >SSN dob DL all info included
    >For SBA & PUA filling
    >Fresh spammed & Fresh database

    **TOOLS & TUTORIALS AVAILABLE FOR HACKING SPAMMING CARDING CASHOUTS CLONING**

    =>Contact 24/7<=

    Telegram > @leadsupplier
    ICQ > 752822040
    Skype > Peeterhacks
    Wickr me > peeterhacks

    FRESHLY SPAMMED
    VALID INFO WITH VALID DL EXPIRIES

    *All info included*
    NAME+SSN+DOB+DL+DL-STATE+ADDRESS
    Employee & Bank details included

    CC & CVV'S ONLY USA AVAILABLE

    SSN+DOB
    SSN+DOB+DL
    High credit fullz 700+
    (bulk order negotiable)
    *Payment in all crypto currencies will be accepted

    ->You can buy few for testing
    ->Invalid info found, will be replaced
    ->Serious buyers contact me for long term business & excellent profit
    ->Genuine & Verified stuff

    TOOLS & TUTORIALS AVAILABLE FOR
    (Carding, spamming, hacking, scripting, scam page, Cash outs, dumps cash outs)

    =>Ethical Hacking Tools & Tutorials
    =>Kali linux
    =>Facebook & Google hacking
    =>Bitcoin Hacking
    =>Bitcoin Flasher
    =>SQL Injector
    =>Bitcoin flasher
    =>Viruses
    =>Keylogger & Keystroke Logger
    =>Logins Premium (Netflix, coinbase, FedEx, PayPal, Amazon, Banks etc)
    =>Bulk SMS Sender
    =>Bitcoin Cracker
    =>SMTP Linux Root
    =>DUMPS track 1 and 2 with & without pin
    =>Smtp's, Safe Socks, rdp's, VPN, Viruses
    =>Cpanel
    =>PHP mailer
    =>Server I.P's & Proxies
    =>HQ Emails Combo (Gmail, yahoo, Hotmail, MSN, AOL, etc)

    ->Serious buyers are always welcome
    ->Big discount in bulk order
    ->Offer gives monthly, quarterly, half yearly & yearly
    ->Hope we do a great business together

    CONTACT 24/7
    Telegram > @leadsupplier
    ICQ > 752822040
    Skype > Peeterhacks
    Wickr me > peeterhacks

    ReplyDelete