Top
Back: 4.3 int
Forward: 4.3.2 int expressions
FastBack: 4 Data types
FastForward: 5 Functions and system variables
Up: 4.3 int
Top: 1 Preface
Contents: Table of Contents
Index: F Index
About: About This Document

4.3.1 int declarations

Syntax:

int name = int_expression ;

Purpose:

defines an integer variable.

Default:

0

Example:
  int i = 42;
  int j = i + 3; j;
→ 45
  i = i * 3 - j; i;
→ 81
  int k;   // assigning the default value 0 to k
  k;
→ 0

Top Back: 4.3 int Forward: 4.3.2 int expressions FastBack: 4 Data types FastForward: 5 Functions and system variables Up: 4.3 int Top: 1 Preface Contents: Table of Contents Index: F Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texinfo.