How to Run C Program in Linux Environment ?

Step 1 : Open Any Text Editor in Linux .
Step 2 : Type this Following Snippet in Editor.

#include<stdio.h>
int main()
{
printf("Hello , Welcome to Linux Environment");
return(0);
}

Step 3 : Save this Program by .C extension. [Say above program as hello.c ] Step 4 : Open Terminal.
Step 5 : Type this to Compile

cc hello.c

Step 6 : Type this to Run

./a.out

Step 7 :Hello , Welcome to Linux Environment” will be displayed on Screen.