Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
An error will actually crash the program, whereas a bug will cause it to not work right. // Bug // Expecting count from one to five count = 1 while (count < 5) { cout << count << endl; count++; } // Output: // 1 // 2 // 3 // 4 // Not quite right. // Error num = 42 / 0 // Program crashes
13th Nov 2016, 4:19 PM
Keto Z
Keto Z - avatar