void display(int z) // function declared Display(int z
That's not a function prototype.
This is: void display(int z); // function declared Display(int z
void display(int z) // function declared Display(int z
That's not a function prototype.
This is: void display(int z); // function declared Display(int z