E
emre esirik(hacettepe computer science and enginee
char poli[50];
int p;
scanf("%s", poli);
if(poli=='X' && poli[i+1]=='^')
{
toplam=i+3;
p=poli[i+2];
p is a ASCII code of integer but I need integer
for example if poli[i+2]='2' it puts p 50 (ascii code of '2')
but I need p=2 integer form, how can I do, please help
int p;
scanf("%s", poli);
if(poli=='X' && poli[i+1]=='^')
{
toplam=i+3;
p=poli[i+2];
p is a ASCII code of integer but I need integer
for example if poli[i+2]='2' it puts p 50 (ascii code of '2')
but I need p=2 integer form, how can I do, please help