The program below has a bug. Which statement correctly describes it?
#include <stdio.h>
int main(void) {
const int max_attempts = 3;
max_attempts = 5;
printf("%d\n", max_attempts);
return 0;
}
A const object gets its value only from its initializer. If the value really must change, the variable should not be const.