The argument you give to scanf must be a pointer to a location that you want to store the read data to. arr[i] is an integer, not a pointer. You can get the pointer to arr[i] with the address-of...