I have this code right here:
#include <iostream>
using namespace std;
int main() {
  int counter = 0;
  int sum = 0;
  while(counter < 10);
  {
    sum += ++ counter;
  }
  cout << sum << endl;
}
I was wondering if the line while(counter < 10); is an infinite loop which results in the rest of the code not being executed.
Another side question, since the while is delimited with ;, that block of code under it is just an inner scope of code?
 
     
    