How the C program can be compiled?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of the c language?

640


What is the difference between the expression “++a” and “a++”?

648


Is boolean a datatype in c?

541


What is the g value paradox?

643


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

683






Explain the difference between ++u and u++?

633


What is structure pointer in c?

565


What is unsigned int in c?

551


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

975


How do you generate random numbers in C?

653


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2023


What is static and volatile in c?

775


What is the size of array float a(10)?

651


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1209


if p is a string contained in a string?

1404