HOW TO INSTALL "C" COMPILER IN FEDORA:
STEP 1: Open your fedora Terminal window.
STEP 2: Connect Internet to your System.
STEP 3: Then type this commands.
LOG IN TO ROOT USER:
Syntax: $su – (or) $su
Syntax: $password: enter your root password.
Syntax: [root-@local host]#
STEP 4: INSTALL GCC COMPILER OR C-COMPILER:
Syntax: [root-@local host]#yum install gcc*
STEP 5: Display the available packages.
STEP 6: Then install gcc compiler.
STEP 7: Finish the installation.
HOW TO WORK "C" PROGRAM IN FEDORA:
STEP 1: Open your Fedora Terminal window.
Syntax: $vi sample.c then enter.
STEP 3: open the vi editor window.
STEP 4: Pres the insert "i" button.
STEP 5: Then type your "C" Program.
#include<stdio.h>
void main( ){
printf(" Welcom to C program ");
}
STEP 6:Then save and quit your c program.
syntax: press Escape key and then type wq: then press enter key.
HOW TO COMPILE "C" PROGRAM IN FEDORA:
STEP 1: Compile your "C" program.
syntax: $cc sample.c
STEP 2: Find errors and correct the errors.
STEP 3: Then save and close.
HOW TO RUN "C" PROGRAM IN FEDORA:
STEP 1: Type this command and run your "C" program.
syntax: $./a.out
output: Welcome to C program
STEP 2: Close the terminal window.
Boss,
ReplyDeleteThe best one i saw, useful for everyone.
Thts so cool Sir,, but PLZ tell us how to make yum client.
ReplyDeleteThank you, very good article.
ReplyDeletethanks but i am having problem on saving the c program when i press esc button am unable to type wq: plz help me out.
ReplyDeletegreat .... thanks a lot . u understood my problem correctly.. thanks.
ReplyDeletenice approach let me test
ReplyDeletehow to root the command
ReplyDelete