मैं है दो प्रश्न - (मैं)उपयोग
code-fragment-1
if(<condition-statement>){
}
else if(<condition-statement-2>){
//statements-1
}
//statements-2
कोड-टुकड़ा-2
if(<condition-statement>){
}
else{
if(<condition-statement-2>){
//statements-1
}
//statements-2
}
उपरोक्त दो कोड के टुकड़े एक ही हैं?
(II) जब अन्य ifs (सी ++ में) उपयोग किए जाते हैं?
एक स्विच स्टेटमेंट हमेशा "अन्य अगर शाखाओं" को प्राथमिकता देना है, या मुझे गलत विचार मिल रहा है – clockw0rk