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

How to make explosive at home

Hey guys. So I seen a few tutorials on how to make explosives at home. Most of them were pretty long and confusing, dangerous or just stupid. Well this tutorial will show you a very easy way anyone can make explosives, and it's quite stable. What you need: Acetone (C3H6O) Hydrogen Peroxide You can get these from the pharmacy. Mixing these two ingredients in a high temperature will result in Acetone Peroxide. It's not very stable when it's dry, so as long as it's wet it's more stable. This "TATP" got a bit a publicity a couple years ago, in the U.K. Underground bombings, actually. It's dangerous, just like any explosive, so be VERY careful if you plan to make this. And read about it here http://en.wikipedia.org/wiki/Acetone_peroxide I AM NOT RESPONSIBLE FOR ANYTHING YOU DO WITH THIS INFORMATION. THIS IS FOR EDUCATION PURPOSE ONLY.

Trojan blackdoor

What is trojan backdoor ? Backdoor.Trojan is a detection name used by Symantec to identify malicious software programs that share the primary functionality of enabling a remote attacker to have access to or send commands to a compromised computer. As the name suggests, these threats are used to provide a covert channel through which a remote attacker can access and control a computer. The Trojans vary in sophistication, ranging from those that only allow for limited functions to be performed to those that allow almost any action to be carried out, thus allowing the remote attacker to almost completely take over control of a computer. A computer with a sophisticated back door program installed may also be referred to as a "zombie" or a "bot". A network of such bots may often be referred to as a "botnet". Botnets have been well publicized in the news over the years, with different instances being given specific names such as Kraken, Mariposa, or Kneber, alon...