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

Definition of Expression

By David Bolton, About.com

Definition: An expression is a statement that has a value. In C, C++ and C# . An expression is always inside brackets like these examples.
( y > 4)
( x== 8 and (c=='U')
( c = 1)

The last example isn't a mistake. It is an assignment statement, setting c to 1. The value of this statement is 1.

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:
Don't forget that expressions must always be inside brackets.
Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

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

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

All rights reserved.