Question: I cannot identify the error in this code: #include #include #include int main() { char input[30], out[30], gr; int na[26] = {0}; int n,i,j,k; int

I cannot identify the error in this code:

#include #include #include int main() { char input[30], out[30], gr; int na[26] = {0}; int n,i,j,k; int h = 0; printf("enter a string "); scanf("%s", input); while(input[h] != 'Q'){ n = strlen(input); for(i = 0; i

j = 0; for(gr = 'a'; gr<= 'z'; gr++) { k = gr - 'a'; for(i = 0; i

return 0;

}

When I compile I am met with this error:

Segmentation fault (core dumped)

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!