I am getting core dumped error while comp. code in coding block ide but program doesnot trough any error in other compiler please take a look
Check now , it was cause of logical error. Take char input as value of n is not given in question. So you canβt use it.
sir can you tell me why you write digit=arr[i]-β0β and if i remove β0β from then it goes some random output
Since arr is a char input right? It will be like β2β, β3β, or some other digit but in form of char. By doing, arr[i]-β0β what we are doing is converting that char form of arr[i] into int. For eg arr[i] = β2β so arr[i]-β0β, will be β2β - β0β = 2 . This is known as typecasting. You can read about it through google. Hope now you would understand
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.