community
directory
books
authors
images
encyclopedia

Email:
Password:
Register

Knowledgerush Search

 

Google
  Web knowledgerush


Search for images of Declaration


Message boards   Post comment

Declaration

A declaration is a form of statement, which expresses (or declares) some idea; declarations attempt to argue that something is true. Some types of written text are said to be declarations, such as the US Declaration of Independence.

Computer Science

In computer science, a declaration specifies a variable's dimensions, identifier, type, and other aspects. The declaration, and any related initializer, forms the definition; usually, the declaration and definition are the same thing. Definitions reserve memory. Definitions and declarations can also be used for subroutines (functions); where, they are sometimes referred to as "prototypes". Once again, in some cases the definition and the prototype are the same thing.

Initialization allows a variable to be defined as "equal" to something. Below is an example of a C++ function which declares an integer variable, x; this is followed by an example where the variable has been initialized to equal seven, x = 7:

void example1()

void example2()

 

Compose Your Message

Your Email Address or Pen Name (optional):
Subject:
Your Message:
 

 

 

 

 

 

This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Declaration".

 

Contact UsPrivacy Statement & Terms of Use

 
Copyright © 1999-2003 Knowledgerush.com. All rights reserved.