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

Definition of Source Code

By , About.com Guide

Definition: Source code is the human readable instructions that a programmer writes. Here is an example of some C++ code
void Rectangle::MoveTo (int newx, int newy)
{
x = newx;
y = newy;
}

void Rectangle::RMoveTo (int dx, int dy)
{
x += dx;
y += dy;
}

Programmers use a compiler to turn source code into machine code that the computer can execute.

Some programming languages like JavaScript are not compiled into machine code but are interpreted instead.

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
Explore C / C++ / C#
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

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

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Getting Started
  5. Source Code Definition

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

All rights reserved.