answersLogoWhite

0


Best Answer

You need to declare it first. A function declaration is made of three parts:

The kind of data the function returns, I.E. void, int, etc.

The name of the function, I.E. helloWorld.

The list of parameters in parentheses, I.E. (A as int, B as char)

For an example, here it is:

void helloWorld();

Now, to put something inside the function, you can write the following:

void helloWorld()

{

printf("Hello world!");

}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to create user define function of my name in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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


To create a user defined sizeof function?

Not possible.


How to know whether the function is user define function or library function?

You don't have to know. Library functions are also written by somebody, aren't they?


How do you add a user define function to library file?

Create an object module (WinDos: *.obj, unix: *.o), then use the platform-specific librarian program (WinDos: lib.exe, unix: ar, libtool)


How can you write answer since you do not have user name?

You can easily create a free account, and then you will have a user name.


How do you create function in php?

they're called user-defined functions, this is the syntax: function the_user_defined_name() { the code you want here }


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.


What can a function be defined as?

Definition: By function We Means In C which Perform Some Specific Task..e.g Print Scan etc. The function Should Inclosed of Parantheses. There Are two Types Of Function 1.User Define Function 2.Built in function


Why main is called user define function?

It simply means that main is not part of a pre-written library like printf or sleep.


What Difference between built-in function and user define function?

Built-in functions are functions that are provided for you by the standard includes. User-defined functions are those that you write yourself. Third-party functions are those that are written for you, but that are not provided by the standard includes.


What are the different user define data typesexplain with example?

what are the different user define data types explain with example


Define process according to user interactionin operatin system?

4. Define process according to user interaction?