Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
7 user(s) are online (5 user(s) are browsing encyclopedia)

Members: 0
Guests: 7

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

Default (computer science)

: For other uses of the word, see the default disambiguation page.

A default, in computer science, refers to a setting or value automatically assigned to a computer program or device, outside of user intervention. Such settings are also called presets, especially for electronic devices.

=Examples=

==Computer input panel==

One use of default parameters is for initial settings on input panels. For example, the first time a user runs a program it may suggest that the user s delivery address is in the United States. This default might be appropriate if more users of that program were in the US than any other country. If the user selected a new country, that would override the default, and perhaps become the default for the next time the program is used on that computer or by that user. Changing the default for the next run would involve storing user info somewhere, such as in HTTP cookie on the user s computer for an Internet application.

==TV or computer monitor==

A TV or computer monitor typically comes with a button to restore factory presets . This allows the defaults for brightness, contrast, color, etc., to be returned to the settings recommended by the manufacturer. This button may be used when the settings get badly misadjusted (say by a toddler playing with the controls). Some fine-tuning of the settings may still be needed from the factory settings, but they are likely closer to the desired settings than the current random settings.

=When to use computer program defaults=

Using defaults involves two goals which sometimes conflict:

*Minimal user interaction should be required. Setting defaults to the most commonly selected options serves this purpose.

*Panel entry errors should be minimized. Using defaults will tend to increase errors, as users may leave incorrect default settings selected. In cases where the value can be verified, this is not a severe problem. For example, the delivery country can be checked against the street address/postal codes and any mismatch can generate an error panel displayed to the user, who will then presumably make the correction.

In cases where there is no clear majority and the results can t easily be verified, such as the gender of the individual, no default should be offered. Note, however, that some software packages require defaults.

=Computer language defaults=

Most languages in the C (programming language)-family allow a function to have default parameters, that are used if the function is called with omitted parameter specifications.

In C and languages based on its syntax, the switch statement (which dispatches among a number of alternatives) can make use of the default keyword to provide a case for when no other case matches.

In Fortran, the INIT parameter on a declaration defines an initial default value for that variable.