Skip to main content

How to run 'c' on Ubuntu Linux

How to run 'c' on Ubuntu Linux

(By- Jatin Bhutani)

This document explain how to run your your 'c' programs on Ubuntu Linux

what do u all need1. A system running Ubuntu.2. Your knowledge of programming of c 
 so lets do it!!!!


STEP 1:-  open terminal
 You can do this by searching terminal in the Ubuntu menu, or using a keyword 'Alt + Ctrl + T '   A terminal window will pop up like this.

open terminal


    And  you can always lock anything to the launcher if you need it very fast.

lock terminal





STEP 2:- use text editor for creating and editing a source file 


 Type in terminal
“ gedit hello.c”

what it will do :- It will create a file ,name as 'hello.c' 
*tip:- the source file for c are save as .c extension.

 pop up window of gedit will open, type your test code in the following format  
         

                            #include <stdio.h>

                               main()
                                           {

                                          printf ( "hello world, testing c om ubuntu\n" );
                                              }

close the editor window.


Step 2




STEP 3:- compile your program
Type a command
                                     gcc -o hello hello.c


this wil make the GNC compiler to compile the “hello.c” file in your home folder
the result will will be an executable file named as hello




STEP 4:- Execute your program
Type the command
./hello
the result should display this in output
hello world, testing c om ubuntu











so that is it,, so simple it was

 if you want to do a little advance try my pdf on the same topic" how to run c on ubuntu '



here is the link
http://bit.ly/1DCmKNu

https://www.dropbox.com/s/enbzs2kuzn3qvwv/Untitled%20Document%202.pdf?dl=0



Comments

Popular posts from this blog

Physical Teleportation Theoretical method to do It!

Teleportation is the ability of moving matter from one point in time and space to another point in time and space instantaneously. There are different types of teleportation available at this time both visual and physical teleportation are possible and we use visual teleportation as our starting point. Types Visual body teleportation Astral body teleportation The different types of visual teleportation are. visual body or astral body teleportation , or visual object teleportation but before we can master teleportation we must first learn the art of Telekinesis/Psychokinesis and Clairsentience and the higher state of consciousness the seventh sense. Other abilities useful in teleportation are Tele-Visualization and ESP (Extrasensory Perception). The ability of teleportation is used in Time travel, Interstellar travel, and Dimensional travel. Teleportation is the near instantaneous transport of the Psychic from one location to another and there is no other fo...

Convert ARF to MP4, WMV, MP3 with ARF Converter

Convert ARF to MP4, WMV, MP3 with ARF Converter Need to convert ARF to MP4, convert ARF to WMV, MP3? ARF Converter can help easily convert ARF files. Get your ARF File Converter to open and play ARF files now. ARF, standing for “advanced recording file”, is a file extension for a WebEx advanced recording file from a network-based recording. An ARF file contains the video data, a table of contents, an attendee list, and other information on separate panels. The ARF file extension is for recordings downloaded by the user. The ARF file extension is also used for automatic response files. The *.arf files are WebEx recordings directly downloaded by the user. However, we often meet problems when open or play ARF files. Why? Because the incompatibility of ARF file is not so good. To solve the compatibility and open or play ARF files with zone problems, it is nice to convert ARF to MP4, convert ARF to WMV, MP3 or other common video and audio formats. What Kind of ARF Converter or ARF Player Ca...

All UBUNTU keyboard Shortcuts

All UBUNTU keyboard Shortcuts UBUNTU is one of the popular operating system based on LINUX. It has a good number of users after fedora. I have already posted keyboard shortcuts for different web browsers and operating system. Today i am posting keyboard shortcuts for UBUNTU which will help you to work faster. Ctrl + A = Select all Ctrl + C = Copy the highlighted content to clipboard Ctrl + V = Paste the clipboard content Ctrl + N = New (Create a new document, not in terminal) Ctrl + O = Open a document Ctrl + S = Save the current document Ctrl + P = Print the current document Ctrl + W = Close the close document Ctrl + Q = Quit the current applicationKeyb­oard shortcuts for GNOME desktopCtrl + Alt + F1 = Switch to the first virtual terminal Ctrl + Alt + F2(F3)(F4)(F5)(F6) = Select the different virtual terminals Ctrl + Alt + F7 = Restore back to the current terminal session with X Ctrl + Alt + Backspace = Restart GNOME Alt + Tab = Switch between open programs Ctrl + ...