• CONTEST ALERT - Experience the power of DDR5 memory with Kingston Click for details

c/c++ in linux

Status
Not open for further replies.

naveenchandran

In the zone
:arrow: Open a text editor ( Kwrite or gedit or anything will do)

:arrow: Type the Program

int main()
{
printf("Hello World\n");
return 0;
}

:arrow: Save it! (as hello.c) :wink:

:arrow: Open the terminal

:arrow: Type gcc hello.c (For Compiling)

:arrow: Type ./a.out

:arrow: You will get 'Hello World' as output in terminal :)
 

GNUrag

FooBar Guy
write this on your shell!

Code:
$ echo "main(){printf(\"hello\");}" >f.c;gcc f.c;./a.out
 

GNUrag

FooBar Guy
this beginner should get a nice book on C/C++ . Almost all the books give emphasis on how to get up and working with c/c++ on unix/linux.
 

nixcraft

Journeyman
GNUrag said:
this beginner should get a nice book on C/C++ . Almost all the books give emphasis on how to get up and working with c/c++ on unix/linux.
You can get lots of good docs online also just do it google.co.in search!
 

demoninside

In the zone
Hey GNU this is not right
not every one tell about working on Unix & Linux (check Indian Writters)

Any way any one heard EMac Editor.........??????????????
*Guess i hv spel it correct..=> Realy weak :(
 
Status
Not open for further replies.
Top Bottom