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.6.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.3.1, 2022, generated by texi2html.