C / C++ / C#

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Type

By David Bolton, About.com

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

Explore C / C++ / C#

About.com Special Features

C / C++ / C#

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Glossary
  5. T
  6. Type - Definition

©2009 About.com, a part of The New York Times Company.

All rights reserved.