Teledyne-lecroy Protocol Analyzers File-Based Decoding User Manual Manuel d'utilisateur Page 31

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 82
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 30
File-based Decoding User Manual Chapter 7: Statements
LeCroy Corporation 25
However,
str = FormatEx ( "%s", HiThere() );
...
HiThere()
{
a = "Hi there";
b = "Goodbye";
if ( 3 != 3 ) return a;
else return b;
}
results in "Goodbye" getting assigned to str, because the if statement evaluates to
false. This causes the first
return statement to be skipped. The function continues
executing with the
else statement, thereby returning the value of b to be used as an
argument to
FormatEx.
Vue de la page 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 81 82

Commentaires sur ces manuels

Pas de commentaire