Hi folks.
Is there a problem with nbr in the below sample code from my C book not being initialised? I am thinking that because of this, it could actually contain 99, so the program could actually stop before the user enters any values?
Thanks in advance.
Code:int value[5]; int ctr = 0; int nbr; while(ctr < 5 && nbr != 99) { puts("Enter a number, 99 to quit"); scanf("%d", &nbr); value[ctr] = nbr; ctr++; }