Top
Back: int
Forward: int expressions
FastBack: ideal
FastForward: intmat
Up: int
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.5.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: int Forward: int expressions FastBack: ideal FastForward: intmat Up: int Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.