answersLogoWhite

0


Best Answer

The syntax for a function declaration in C is:

return-type function-name(list-of-parameter-types);

The following example declares a function that takes an int type parameter and returns an int.

Example:int myFunction(int);
User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Simply write down the name of the function, then the parameters between brackets. Example:

puts ("Hello, world");

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can use a function in c without declaration?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is difference function prototype and function define in turbo c?

In C, a function prototype is a declaration to the compiler that a certain function exists, without a full definition. This allows other functions to call that function. The linker will later make sure that a function definition actually exists (perhaps somewhere else), and will turn the call to the function to a call to the correct function.


How can you clear screen in c without clrscr?

You can use system("cls") function with stdlib.h


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.


How do you use this function in c programme?

I don't use that function in C programme.


How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().

Related questions

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.


What is difference function prototype and function define in turbo c?

In C, a function prototype is a declaration to the compiler that a certain function exists, without a full definition. This allows other functions to call that function. The linker will later make sure that a function definition actually exists (perhaps somewhere else), and will turn the call to the function to a call to the correct function.


How can you clear screen in c without clrscr?

You can use system("cls") function with stdlib.h


How do you use this function in c programme?

I don't use that function in C programme.


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.


How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().


How a variable is declared and initialized during declaration in c?

During declaration, the declaration goes like this: extern <type> <variable-name> or <type> <function-name> (<parameter list>);


What is default value of formal arguments?

In C, there is no default value for formal parameters. In C++, there can be, but the value is whatever you declare in the function declaration.


Where is the global declaration section of a c plus plus program?

Anything declared outside of a function is global.


How do you correct the C plus plus programming error missing function header?

You need to #include the header file that contains the missing function's declaration.


Can you use main function as a recursive function in C?

Yes


How do you use getpass in C?

This function is obsolete. Do not use it.