for(int i=1;i<20;i++)
{
(i>=10)?j=i-10:j=i;
printf("%d",j);
}
ptr=strchr(string,ch);
result=(int)(ptr-string+1);
printf("\n%s\n",string);
printf("frist r is: %d\n",result);
}
/*
1234567890123456789
This is a string
frist r is: 13
Press any key to continue
*/