null is the ascii code 0 represented as '\0' it is used as a terminate key. They are used at the end of strings to signal where the string of characters end. They are also used in streams to signal the end of the stream. There is a macro in C called NULL that represents the null character which is often times a null ptr which is the same as a void *. In c++ for pointers there is nullptr.
Here was my original code, I'm still working on it so its messy. I wanted to send out an error if user puts in value less than 0 or none at all. And if neither occurs then the program should print out the amount of results as the user entered.