how to run a c programme on linux ?

manish_gupta
manish_gupta used Ask the Experts™
on
how to run a c programme on linux ?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.

Commented:
Compile it using gcc.
Make it executeable using chmod.
Then run it.
gcc programme.c && ./a.out
if you have the source code, compile it with gcc (or g++) and then run a.out
>gcc yourprog.c
>./a.out

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Points for ahoffmann

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Venabili
EE Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial