
- Forum
- Programming Talk
- C and C++
- Data types
Data types
This is a discussion on Data types within the C and C++ forums, part of the Programming Talk category; What are the data types that can be used in switch statement in C programming language? Can a user use ...
-
Data types
What are the data types that can be used in switch statement in C programming language? Can a user use all data types or is there any restriction on the usage of data types in switch statement?
-
05-14-2007, 05:29 PM #2
- Join Date
- Apr 2006
- Answers
- 124
No. All data types cannot be used with switch statement in C programming language. There is restriction for the usage of float data type. Only integers and char data type can be sued with switch statement in C programming language.

Reply With Quote





