Compiling C code in terminal, always shows a % if I don't put a newline
03:13 22 May 2020

So when I run a program in terminal, for instance just a simple printf,

#include 

int main(){
   printf("Hello");
   return 0;
}

In terminal, it will print Hello% But if I run it as printf("Hello\n"); , then there is no % not even in the blank line under it.

Does anyone know what is going on?

Edit:

To compile, in terminal: gcc hello.c

To run: ./a.out

What terminal is returning: Hello%

c macos terminal