Anasayfa » switch in c

switch in c etiketindeki yazılar

C / C++ »

[6 Eyl 2011 | Yorum Yok | 1.728 views ]
C / C++ Courses ? 13 (Switch)

Switch is a selection structure just like if, if/else. It is not a repetition structure. Important points of using switch:
? We use switch while checking one variable with different outcomes with more than one value.

? It should be equality. Comparison (< or >) won’t work with switch.

? In switch, only integer can be used, not other types. But character is also acceptable, because as you know, character has also an integer value which is ASCII code. So we can say,

Devamını Oku »