DIGIT-ARC read-only archive · snapshot: July 23, 2026

c/c++ in linux

9 posts · originally from https://geek.digit.in/community/threads/c-c-in-linux.4241/

Manojap
Manojap Original post #1
Jan 2, 2005 at 7:25 PM
How can i use c/c++ in linux ,show me a simple xample.
N
Jan 2, 2005 at 7:46 PM
: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
GNUrag #3
Jan 2, 2005 at 9:13 PM
write this on your shell!

Code:
$ echo "main(){printf(\"hello\");}" >f.c;gcc f.c;./a.out
C
Jan 2, 2005 at 9:50 PM
Hey GNUrag, Why do you confuse a beginner??
GNUrag
GNUrag #5
Jan 3, 2005 at 2:53 PM
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.
N
Jan 3, 2005 at 4:19 PM
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!
D
Jan 3, 2005 at 11:30 PM
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 :(
N
Jan 4, 2005 at 12:17 AM
not every one tell about working on Unix & Linux (check Indian Writters)

I can't accept this :wink: Nowadays > 90 % of books gives it.

LET US C ----------- Yashavant Kanetkar's ------------ Fifth Edition :)

Any way any one heard EMac Editor.........??????????????

Yes!
L
Jan 6, 2005 at 10:55 PM
hehehe GNUrags code reflects a typical hacker persona............