gcc_c99
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
gcc_c99 [2009/11/30 14:18] – thierry | gcc_c99 [2009/11/30 14:23] (Version actuelle) – thierry | ||
---|---|---|---|
Ligne 85: | Ligne 85: | ||
===== Chaines ===== | ===== Chaines ===== | ||
+ | Pourquoi associé une chaine et une variable !? | ||
+ | |||
+ | Voila que ça marche aussi comme cela: | ||
+ | for( int i=0; ; i++ ) { | ||
+ | // ----------------------------- | ||
+ | char c = "Hello Word!" [i]; | ||
+ | // ----------------------------- | ||
+ | if ( !c ) { | ||
+ | printf(" | ||
+ | break; | ||
+ | } | ||
+ | else printf(" | ||
+ | } | ||
+ | Resultat: | ||
+ | Hello Word! | ||
+ | bien sur... |
gcc_c99.txt · Dernière modification : 2009/11/30 14:23 de thierry