Renesas H8S/2378F Technical Information Seite 74

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 170
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 73
50
3.14 Displaying Local Variables
The user can display local variables in a function using the [Locals] window. For example, we
will examine the local variables in the main function, which declares five local variables: a, j, i,
min, and max.
Select [Locals] from the [View] menu. The [Locals] window is displayed.
Initially, the [Locals] window is empty because local variables have not yet been declared.
Select [Step In] from the [Run] menu to execute a single step.
The [Locals] window will now show the local variables and their values.
Figure 3.32 [Locals] Window
Double-click the + symbol in front of array a in the [Locals] window to display the elements
of array a.
Refer to the elements of array a before and after the execution of the sort function, and
confirm that random data is sorted in descending order.
Seitenansicht 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 169 170

Kommentare zu diesen Handbüchern

Keine Kommentare