answersLogoWhite

0


Best Answer

function is a self contained block or sub program of two or more statements which performs a special task when called.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Define function in c program
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Where is it possible to define a function in c?

yes you looser


How do you write a c program without using main function?

You cannot create a program with the extension .exe without the function main. You can create a dll which does not even use main. WinApi uses another main function but it's still a main function. Main function is entry point for your program, no entry point no program.Write a progrmme in c with out using a main function. #include #define decode(s,t,u,m,p,e,d)m##s##u##t #define begin decode(a,n,i,m,a,t,e) int begin() { printf("HELLO") }


What function does every C program have Why should you split large programs into several functions?

Every C program has a main() function.


Where do we write main function in a c program?

Into the source program.


What must every c program have?

A main function must be present in every C program.


What is main function used in c?

if you do not used main function in c program when errors are accrued


C program always begins with which function?

That's up to you, but the execution of the program begins with function main.


What are its program components?

the main() function,the#include Directive, the variable definition. function prototype, program statements, the function definition,program comments and braces are the components of program in C++


C program to find largest among three numbers?

#define max2(a,b) (b>a?b:a) #define max3(a,b,c) (max2(a,max(b,c)))


What are the advantages of having program in a class in C plus plus?

You don't write programs in a class in C++, you write programs that use classes. Every C++ has at least one function, main, the entry point of the application. You define the classes and functions that are used by your main function. Classes allow you to classify the objects used by your program, allowing data to be manipulated in a highly controlled manner, ensuring consistency and robustness throughout your program.


How do you pass in Anna university chennai?

Define c-program and give an example


What is the function of program in c?

Whatever the programmer wants it to be.