answersLogoWhite

0

How do you declare a functions?

Updated: 8/20/2019
User Avatar

Wiki User

12y ago

Best Answer

public void throwRock()

{

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you declare a functions?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you declare functions?

datatype function_name() { }


How do you declare gotoxy?

You don't declare library functions. Simply include conio.h. For details use the built-in help.


How do doctors declare death?

The doctor determines if a patient has a pulse, if the patient are breathing and if he or she has any brain functions. If all three bodily functions are absent,a doctor can declare the person dead.


How you declare class scoped variables and member functions?

To scope class members to the class (rather than to instances of the class), declare them as static members of the class. Static members are accessible even when no instances of the class exist. As such, static member functions do not have access to a 'this' pointer, unlike ordinary (nonstatic) member functions.


What are the function of header files?

They declare library functions They contain macro definitions They contain type definitions


Can you declare a function in the body of another function in c language?

yes, we can not declare a function in the body of another function. but if we declare a function in the body of another function then we can call that very function only in that particular function in which it is declared; and that declared function is not known to other functions present in your programme. So if a function is required in almost all functions of your programme so you must declare it outside the main function i.e in the beginning of your programme.


Is declaring a form of the word declaration?

No, the word 'declaring' is the present participle, present tense of the verb to declare. The present participle of the verb also functions as an adjective and a gerund(verbal noun).The word declaration is a noun form of the verb to declare.


What are the functions of the supreme court?

Declare bills (proposed ideas to become laws) unconstitutional or not. Also, settle court cases, if it is justifiable under the law.


What happen if you declare a global variable as static in C language?

When declared as static, the variable has internal linkage and its scope is restricted to the *.c file in which it is declared. It becomes visible to all functions within the file where it is declared and not to functions in other files.


In c plus plus are local declarations visible to the function in a program?

If you declare a variable inside of any fuction (except main) it will not be available to other functions.


What is the difference between declaring static variable as local and global?

There are two ways to declare varibles. 1. Locally 2. Globally When you declare a variable locally in any function that means it is only accessible by that function. When you declare a variable globally so it is accessible by all the functions in the program. Declaring variables with static keyword means you are setting its value null.


What is header file in computer programming?

A header file is used in some languages to declare functions that will be used but are not yet defined in the current source code. This is primarily used by C and C++, and usually for library functions and user-defined functions that are stored in separate files and folders than the main source code file.