answersLogoWhite

0

How you write a c program for making a call in gcc?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

int main() {

// Call the printf function

printf("This is a function call!\n");

return 0;

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How you write a c program for making a call in gcc?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How you can run a c program in Linux 2.4?

if it is n already compiled binary program: ./program-name if it is a code, gcc program-code.c -o program-name if gcc is not installed, on debian: search for a deb package and install it, or, apt-get install gcc on redhat: search for an rpm package and install it.


How compiler do compilation?

Use a compiler program, such as bcc, gcc, javac, etc.


Where the c-program can be written in Linux and how to save it and compile?

Simply any text edittor can be used to write C program. To compile the .c file saved, Linux comes with gcc compiler. In the command line: $ gcc -o outputfile inputfile.c will compile the inputfile.c and create executable outputfile. Other than that there are number of IDEs (i.e. Integrated Development Environment) are available such as Kdevelop, Eclipse etc.


How do you know if gcc is installed?

run gcc command on shell prompt and it will show you $ gcc gcc: no input files else it will show "gcc : command not found"


Can import Scrap tires from GCC to India?

yes u can call in thise number 00971507176680


What command should be given to run a C program from the DOS prompt?

This depends on what compiler you're using, but they all generally have the same process. Example: Converts source code stored in the file test.c into an executable program in test.exe using the GCC compiler... gcc -o test.exe test.c To run the program you can now just run test.exe.


What is GCC licence?

what is GCC driving licences


What is a GCC licence?

what is GCC driving licences


How do you compile a tcpserver and tcpclient program in c?

Platform dependent. Try these commands: cc, gcc, msc, bcc32, xlc...


How do you find the version of GCC in Linux?

gcc --version


What is a gcc driving licence?

what is GCC driving licences


How do you run a program in c-language give me answer briefly?

First it needs compiled. The simplest way is to use the terminal and type gcc my_program.c Then to run your program type. ./a.out