31 lines
809 B
HTML
31 lines
809 B
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
<html>
|
|
<head>
|
|
<title>Assignments</title>
|
|
<link href="style.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body background="images/back.gif">
|
|
<!--START-->
|
|
|
|
<h3>Assignments</h3>
|
|
|
|
An assignment stores a value in a variable. An assignment has the form:
|
|
|
|
<p>
|
|
<blockquote><pre><variable> = <expression>;</pre></blockquote>
|
|
|
|
<p>
|
|
An expression can be a simple value but can also be more complicated.
|
|
Rather than assigning a value to a variable, one can also add the value to
|
|
the current value of the variable using +=. Similar, you can subtract it
|
|
using -=, multiply it using *=, divide it using /= ,or use bitwise
|
|
operators using |=, &\, or ^=.
|
|
|
|
<!--END-->
|
|
</body>
|
|
</html>
|
|
|
|
<!-- KEYWORDS
|
|
assignements
|
|
--> |