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