Which data type variable can be used in switch statement? – Enpatika
Skip to content
Yeni Enpatika Logo

Enpatika

En Güncel Oyun ve Sistem Gereksinimleri Sitesi

  • Ana Sayfa
  • Gizlilik Politikası
  • Telif Hakları
  • İletişim
  • taraftar tv apk

Which data type variable can be used in switch statement?

Can I pass any type of variable to a switch statement?

1 April 2022 Enpatika.com Genel

1) The expression used in switch must be integral type ( int, char and enum). Any other type of expression is not allowed .

Read more

Which data type variable can be used in switch statement?

1 April 2022 Enpatika.com Genel

The variable used in a switch statement can only be a short, byte, int or char . The values for each case must be the same data type as the variable type.

Read more
WordPress Theme: Gridbox by ThemeZee.