I wish to know what is meant by "default" in programming.
sanjuanair 0
Newbie Poster
Recommended Answers
Jump to PostCould you put your question in context by giving us an example...
Jump to Postswitch( var ) { case 1: // ; break; default: std::cout << "Default." << std::endl; break; }
Any case except the integer 1 will output "Default.", as it is the default statement.
I cannot think of a different context for this question, if it's something else …
All 6 Replies
gerard4143 371
Nearly a Posting Maven
Unimportant 18
Junior Poster
Fbody 682
Posting Maven Featured Poster
gerard4143 371
Nearly a Posting Maven
Fbody 682
Posting Maven Featured Poster
Narue 5,707
Bad Cop Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.