When you pass 5 to the get function you are saying that the function should write at most 5 characters to the array. In your program it writes the characters 's', ' ', 'i', 's' and '\0'.
'\0' is a null-character that is used to mark the end of strings. The get function always put this character at end of the string so if you pass 5 it means it can at most extract 4 characters from the stream. The last position is needed for the null-character.