What is wrong in this statement? scanf("%d",whatnumber);
4 years ago
C Programming
An ampersand & symbol must be placed before the variable name whatnumber. Placing & means whatever integer value is entered by the user is stored at the "address" of the variable name. This is a common mistake for programmers, often leading to logical errors.
Sanisha Maharjan
Jan 20, 2022