Hello once more,
I suspect that I may be again overlooking something simple, but for some reason my code is outputting gibberish when it should be simply using a function to take two arguments (a char and an int) and printing the char to the same value of the int, e.g. entering 'a' and '5' should produce "aaaaa".
If I remove the printf/scanf and simply define num = 5 and ch = 'a' then it works fine, but the iteration requires user input.
void char_times_int(char ch, int num);
printf("Enter a number, then a character.\n");
scanf("%d %c", &num, ch);
void char_times_int(char ch, int num)
for (count = 1; count <= num; count++)
Any help much appreciated whilst I hang my head in shame.