What Is a Program Statement?

What Is a Program Statement? thumbnail
Program statements are used to provide instructions to a computer program.

A computer program statement is an instruction for the computer program to perform an action. There are many different types of statements that can be given in a computer program in order to direct the actions the program performs or to control the order that the actions are carried out in.

  1. Function

    • A program statement tells the computer to do something. This may be as simple as adding two numbers together or as complex as connecting to a server across the Internet.

    Types

    • There are many types of program statements that you may find in a typical computer program. Assignment statements are used to assign a value to a program variable. Flow control statements help direct the order in which statements are performed. Iteration statements instruct the program to repeat a series of statements a specified number of times. These are just a few of the types of statements available to a programmer.

    Considerations

    • There are many different programming languages, and each one has its own acceptable format for programming statements. A program statement that works fine in Java will not necessarily perform the same way in Visual Basic.

Related Searches:

References

  • Photo Credit computer image by blaine stiger from Fotolia.com

Comments

You May Also Like

Related Ads

Featured