Trying to make a simple function where I can display a set of words assigned to a variable. It’s not displaying the words I typed.
Here is my code:
#include <stdio.h>
char words[50] = "yes yes no no";
void call_words() { printf("The words are: %cn", words); }
int main()
{
call_words();
return 0;
}
Here is the problem:
C:C>global_testing.exe
The words are:
New contributor
skibidifortnite is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2