Döngü İçi switch-case Akışı ve Fall-through Çıktısı

SonsuzUs Her şey › Category: Soru › Döngü İçi switch-case Akışı ve Fall-through Çıktısı
sonsuz Kurucu sordu 2 gün önce
int kontrol;
for (kontrol = 1; kontrol <= 5; kontrol++) {
    switch (kontrol) {
        case 1: printf("%s", "1");
        case 2: printf("%s", "2");
        case 3: printf("%s", "3"); break;
        default: printf("%s", "d");
    }
}

Yukarıdaki C program parçası çalıştırıldığında konsolda üretilecek çıktı dizgisi ne olur?

Cevapla