You are here:About>Computing & Technology>C / C++ / C#> Glossary> T> Type - Definition
About.comC / C++ / C#

"Definition of Type"

From David Bolton,
Your Guide to C / C++ / C#.
FREE Newsletter. Sign Up Now!
Definition: One of the characteristics of computer languages is how strongly typed they are. What happens if you try to assign a numeric variable to a string?

The stricter the compiler is about typing, the less likely you are to get strange behavior or odd crashes. C is not so strictly typed, C++ is stricter and C# strictest of all.

When you declare a variable in a program, you specify its type. This can be int, bool, pointer or string etc.

This tells the compiler how to handle the variable and check for type errors.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples: Index variables should always be declared to be of type int
 All Topics | Email Article | Print this Page | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.