+ 10

Yes Or No

1.in c++ all if elseif else statements replaced by switch? 2.is it java support pointer or not?

2nd Jul 2018, 7:10 PM
Unknown
8 Answers
+ 8
Thug life No, switch case can be used as a substitute for if else cases. https://www.sololearn.com/learn/CPlusPlus/1618/
2nd Jul 2018, 7:24 PM
Manual
Manual - avatar
+ 2
yes you can but I will prefer to use if elseif else when you have 3-4 cases but when you have more than 5 Case I will prefer switch because it save time.
31st Jul 2018, 3:15 AM
Prince Goel
Prince Goel - avatar
+ 2
Java does not support pointers
12th Aug 2018, 5:25 AM
Seerla Thanuja
Seerla Thanuja - avatar
+ 1
java does support pointer "this" is a pointer that we use
7th Sep 2018, 6:06 AM
utkarsh gupta
utkarsh gupta - avatar
0
i dont know but i think not
12th Jul 2018, 1:40 AM
Craig Wade
0
in c++ you can still use elseif not sure about java
13th Sep 2018, 8:10 PM
Ethan
Ethan - avatar
0
in java we can also use elseif.
14th Sep 2018, 1:50 AM
utkarsh gupta
utkarsh gupta - avatar
0
yes
20th Oct 2018, 9:45 AM
luckson mulenga
luckson mulenga - avatar