How the C program can be compiled?

Answers were Sorted based on User's Feedback



How the C program can be compiled?..

Answer / guest

after writing entire code first compile the program using
alt+F9.Then look at the errors and warnings ,after all the
errors and warnings are rectified u can run the program by
ctrl+F9.to watch the output go through the key alt+F5.

Is This Answer Correct ?    16 Yes 1 No

How the C program can be compiled?..

Answer / anilkumar927@gmail.com

Do you want the commands for compilation of our code or how
the code is compiling internally?
for commands for compilation : (in Linux)
$cc <filename.c>

Process as fallows :
Application Program --> preprocessor --> Compiler --->
linker ---> loader.
If you want more information please let me know on mail

Is This Answer Correct ?    7 Yes 2 No

How the C program can be compiled?..

Answer / babu

In Linux $cc <filename.c>

Is This Answer Correct ?    5 Yes 1 No

How the C program can be compiled?..

Answer / priya

In windows C program is compiled by

Alt+F9

Under linux, the C compiler is gcc.

$Gcc filename.c

For compiling C with graphics application in ubuntu

$G++ -lgraph filename.c

Is This Answer Correct ?    4 Yes 1 No

How the C program can be compiled?..

Answer / guna

ALT+F9 IS THE WAY TO COMPILE.

Is This Answer Correct ?    3 Yes 2 No

How the C program can be compiled?..

Answer / rina

compiler is convert to the program in assembly language to
machin language....

Is This Answer Correct ?    1 Yes 1 No

How the C program can be compiled?..

Answer / kanimozhi91

Linux/Unix
* Pre-requisite : Before compiling check if gcc package is installed, if not install it either by using apt-get install/yum install based on the Linux kernel.
* Once installed, save the program as hello.c
* Compile it using gcc hello.c which will produce object file a.out
* Finally run it as ./a.out

Is This Answer Correct ?    0 Yes 0 No

How the C program can be compiled?..

Answer / sanjay singh

Simply by pressing Alt + F9 Key from the keyboard.


"Note we can also execute a program with compiling if it has
no error in the program in the coding form"

Is This Answer Correct ?    1 Yes 2 No

How the C program can be compiled?..

Answer / mahendra giri

We can compile program after writing code by pressing short
key Alt+F9 or by going on the menu compile->compile

Is This Answer Correct ?    1 Yes 3 No

How the C program can be compiled?..

Answer / thara

Alt+c is a another way to compile.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

Which is best linux os?

0 Answers  


char S; char S[6]= " HELLO"; printf("%s ",S[6]); output of the above program ? (0, ASCII 0, I,unpredictable)

7 Answers   Mascot,


Write a programm such that if user enter 11.25 it roundup to 11 but if user enter 11.51 upto 11.99 it will round up to 12 i.e.;convert the floting point value into integer format as explain above..

2 Answers  


Explain what is the benefit of using an enum rather than a #define constant?

0 Answers  


Explain how can I pad a string to a known length?

0 Answers  






What is the difference between void main and main in c?

0 Answers  


wats SIZE_T meant for?

1 Answers  


wat are the two methods for swapping two numbers without using temp variable??

2 Answers  


What is the difference between functions abs() and fabs()?

0 Answers  


What is #define size in c?

0 Answers  


How to implement variable argument functions ?

1 Answers   HP,


Write a C program to convert an integer into a binary string?

1 Answers  


Categories