EasyManuals Logo
Home>Casio>Desktop>Z-1

Casio Z-1 User Manual

Casio Z-1
126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #83 background imageLoading...
Page #83 background image
83
To illustrate operation of the TRACE mode, we will add a sub() procedure at the top
of our HELLO program, and call it in the main().
Here is how the modified program will look like:
sub(){
printf(“WORLD¥n”);
}
main(){
printf(“HELLO¥n”);
sub();
}
Loading and running this program will generate following output:
HELLO
WORLD
>_
With the TRACE function, it is possible to follow step by step the execution:
.T R O N . .
>tron
>_
.R U N . .
>run
(F1-5) printf(“HELLO¥n”);
Break?_
The display shows that execution is halted at line 5 of the program F1. The question
mark in the bottom line of the display indicates that the computer is asking if it should
execute line 5. Press . . to execute line 5.
. .
HELLO
(F1-6) sub();
Break?_
The display shows the result of the execution of line 5, and stands by for you to press
. . and execute line 6.
. .
Break?
(F1-2) printf(“WORLD¥n”);
Break?_
The execution of line 6 led the program to line 2, which is in the function sub().
. .
Break?
WORLD
>_

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Casio Z-1 and is the answer not in the manual?

Casio Z-1 Specifications

General IconGeneral
BrandCasio
ModelZ-1
CategoryDesktop
LanguageEnglish

Related product manuals