Switch to full style
For C/C++ coders discussions and solutions
Post a reply

switch keyword in c++ usage

Sat Apr 09, 2011 1:23 am

Code:

int x
=2

switch(x)

{

case 1:print("FIRST\n"); break;
case 2:print("SECOND\n"); break;
case 3:print("THIRD\n"); break;
default:print(
"OTHER\n); break;

}




Re: switch keyword in c++ usage

Sat Apr 09, 2011 4:23 pm

print SECOND.

Re: switch keyword in c++ usage

Sat Dec 31, 2011 4:03 am

Thanks for the info msi_333

Post a reply
  Related Posts  to : switch keyword in c++ usage
 Is null a keyword     -  
 What is the use of serializable keyword in C#     -  
 Java volatile keyword     -  
 java instanceof keyword     -  
 Switch vs Hub     -  
 php switch     -  
 Use Switch with strings     -  
 network switch     -  
 JavaScript switch example     -  
 java switch example     -