Why its showing error
- you declare inside and outside variable as char but it should be array of character (input is string )
- line 8 should be outside[j]=’\0’; not “==”
- maintain a global count variable and for each base condition increment it and print it in the end.
I have made changes in your code please check here https://ide.codingblocks.com/s/234482
@supratik260699
Given input is string. You can’t store string in char datatype. You either need array of char or string datatype.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.