answersLogoWhite

0

How do you define a function?

User Avatar

Anonymous

14y ago
Updated: 8/19/2019

Put a function prototype in a header file or before the function is called in a C source file.

void foo(void);

or

int bar(int,float char*);

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Can you define a function inside a function?

No. Functions should be defined separately. So you would not define a function within a function. You can define one function, and while defining another function, you can call the first function from its code.


Define the function of the preceding components in a network?

Define the function of the preceding components in a network?


Define finance function?

george way


Define string handling function?

Penis


How do you define power function without using operator?

using pow() function.. ..


Define parent function?

A parent function refers to the simplest function as regards sets of quadratic functions


Where is it possible to define a function in c?

yes you looser


Define formally Turing-Decidable Problem?

define function formally and using f(x) notation


What is the way by which you can make the user defined the size of the arrays?

By using the library function #define A[] we can define the size of arrays


How do you define fitness function in GAtool matlab?

x^2


Why we use function prototyping in c language?

You could just define the whole function before it is called, like this:void do_nothing(){}main(){do_nothing();}but if you define the function after it is called, the compiler will arrive at the function's calling before its actual definition. If you prototype your function earlier in the code than the function's call, the compiler will look for the function first.Hope I was able to help.


How do you design inline function as a member function?

You define the function at the same time you declare it, usually in the header file, sometimes in an .hpp file.