step 1:create a c file in your directory.
step 2:compile it using cc -o programname sourcefile.c.This makes a file named programname in the same directory.(or) compile it using gcc sourcefile.c.This makes a file named a.out in the same directory.
step 3:Run it using ./programname (or) ./a.out.
No comments:
Post a Comment