Question: In the below C program, I get a warning. How can I correct it, so the program still counts the #characters? 1 | l/include libraries

In the below C program, I get a warning. How can I correct it, so the program still counts the #characters?

In the below C program, I get a warning. How can I

1 | l/include libraries #include #include #include gcc-make-run: Compile Warning Letters_upgraded.c:19:26: warning: format specifies type 'char *' but the argument has type 'char (*) [100] [-Wformat] scanf("[^ ]s", &str); //Define main int main ) 1 warning generated. int chars; chars = 0; int i = 0; char str[100]; printf("Enter the string "); scanf("%[^ ]s", &str); while(str[i] !='\0') if((str[i]>='a' && str[i]='A' && str[i]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!