How the C program can be compiled?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / rina
compiler is convert to the program in assembly language to
machin language....
Is This Answer Correct ? | 1 Yes | 1 No |
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 |
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 |
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 |
10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning
What is the full form of getch?
Which node is more powerful and can handle local information processing or graphics processing?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
0 Answers College School Exams Tests,
What are register variables in c?
write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????
What are .h files and what should I put in them?
Where is c used?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
What is c language used for?
Difference between pass by reference and pass by value?
With the help of using classes, write a program to add two numbers.