How many times will the body of the following while loop be executed?
#include <iostream>

int main(void) 
  int a = -5;

  while (a<0) a++;

@tradingstata05 updated question definition! thanks

2017 Dec 1, 6:34:00 PM

What type of 'a' variable?

2017 Nov 19, 10:46:22 AM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Sign Up Now
or Subscribe for future quizzes