#include <stdio.h>
#include <math.h>
int main()
{
double op1,op2;
char opp;
char *res= "2 ^ 1";
sscanf(res,"%d %c %d",&op1,&opp,&op2);
printf("%d\n",op1);
printf("%c\n",opp);
printf("%d\n",op2);
printf("====\n");
printf("%d\n",pow(op1,op2)); /* the output is for sure 2 */
}
but it output :
1073741824 <-- ??? I don't know what here so please any helping will be appreciated thankx
:?: