[Solved] impacting Strings with pointers [closed]
This scanf(“%s”,kar[1000]); should trigger a compiler warning, as you pass a char where a char* is expected. You pass the 1001st element of kar (which is out of kar‘s bounds, BTW). In C array indices start with 0 for the 1st element. To scan into kar, just pass the address of kar‘s 1st element. scanf(“%s”, … Read more