answersLogoWhite

0

Where is it possible to define a function in c?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

yes you looser

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Where is it possible to define a function in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which is a possible turning point for the continuous function f(x) (3 4) (2 1) (0 5) (1 8)?

Four discrete points do not define a continuous function.


What is the user defined function section in C language?

There are no 'sections' in C source, you can define functions anywhere, except inside another function or variable/type definition.


How can a procedure be defined in C plus plus?

A procedure is simply a function in C++, therefore you define procedures just as you would any function. In some languages, a procedure is not a function as such, insofar as there is no return type. The C++ equivalent would therefore be a function that returns void.


How can override the precedence define by c language?

Not possible; use (brackets) instead.


Is it possible to do operator overloading in c?

No. Operator and/or function overloading is only a C++ thing.


What is library file in C language?

It is a collection of various fuction in which we can define many function in Libaray file .


Can you define a function within a structure?

No, it is the other way around: you can define a structure within a function.In C++ though, structs are actually classes, so they can have methods.


Why it is not possible to pass a function as an argument to another function in c?

It is quite possible. A well-known example is the fourth parameter of qsort.


Define function in c program?

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


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.


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 define a function?

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*);