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

Reverse a string word by word??

9 Answers  


What are the modifiers available in c programming language?

0 Answers  


#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?

1 Answers  


to get a line of text and count the number of vowels in it

2 Answers  


How can I change the size of the dynamically allocated array?

0 Answers  


What is header file in c?

0 Answers  


What is the use of a static variable in c?

0 Answers  


Which is the best sort method for library management?

1 Answers   Microsoft,


What is putchar() function?

0 Answers  


why r u join this company? give solid resons.

16 Answers   IBM, Infosys, TCS,


how to find the sizof of any datatype using bit manipulations

3 Answers  


Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

0 Answers  


Categories