answersLogoWhite

0

How the function is called in c?

User Avatar

Anonymous

16y ago
Updated: 8/17/2019

That's up to you, except for the main function, the name of which has to be main.

Or, if you want to know how to call a function, it's simply by its name, followed by an argument list, eg:

int main (void)

{

puts ("I have just called function puts");

return 0;

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Who is calling main function in c?

in c main function initailly called by operating system.


What is the definition for call by value in c language?

A function is called within a function either called by value or called by reference.When a function is called by passing the values of one or more variables,then the value is copied to a new var of the function's own var of its scope.Ex:void main(){...........c=fun(a,b);...}fun(int c,int d){ int t;t=c+d;return(t);}


How do you make a call to a function in C?

Example:puts ("I've just called function 'puts'");


What is a main function in c plus plus?

It is the first function that gets called when the program is executed.


Where void main is called in c?

main() is the function from where the execution starts.


Can a function be called from more than one place in a program in c plus plus?

In C and C++, as well as in many (all?) languages, a function can be called from more than one place in a program. That's the purpose of functions - to encapsulate pieces of code that are needed in more than one place in the program.


Why the main function is called userdefine function in c language?

It's called 'main' by tradition; this feature lets the linker to know, where to start the execution.


What is meant by function declaration in C language?

The name of the function is established by what is called function declaration. It also establishes the number and the types of parameters.


Formula of power in c program?

There is a function called pow in header math.h


Definition of Differentiable function?

Let f be a function with domain D in R, the real numbers, and D is an open set in R. Then the derivative of f at the point c is defined as: f'(c) =lim as x-> c of the difference quotient [f(x)-f(c)]/[x-c] If that limit exits, the function is called differentiable at c. If f is differentiable at every point in D then f is called differentiable in D.


How would you explain functions in c?

FUNCTION IN C IS DEFINED AS THE METHOD WHICH IS USED TO SOLVE THE COMPUTATIONAL PROBLEM. AND THE FUNCTON CAN BE CALLED IN ANYWHERE IN THE PROGRAM MODULE. STEPS TO DECLERE THE FUNCTION 1.FUNCTION PROTOTYPE 2.FUNCTION DECLARETEION 3.FUNCTION DEFINATION 4.FUNCTION CALL 5.FUNCTION RETUN.


What is prototype in C language?

A prototype in C is the declaration of a function. Without a prototype, the function cannot be called because the compiler would have no way of knowing if the function was being called correctly. Prototypes may appear in multiple translation units but can only be defined once. A definition is itself a prototype.