I am trying to read characters and count its numbers. First, my compiler prompted me for the size of the array. I added number 50, why do I have to specify size in this case?
I have an erro message:
parse error before "char"
The line in red is the spot where the error is.
int readline(char str, int n);
printf("Enter your name please:\n");
printf("Your name has %d characters", read_line(char str, int n));
int read_line(char str, int n)
int i = 0;
while ((ch=getchar()) != '\n')
if(i < n)