Example
class
ClassA {
public: void
methodA () {
string
s="XYZ";
int
l=s.size();
while
(i < l) {
}
};
Solution
In the give example the body of the while loop does contain anything. This sort of empty while loop should be avoided