+ 1
Why it is showing address of the value
https://code.sololearn.com/cg4rPp6ZJoCd/?ref=app https://code.sololearn.com/cg4rPp6ZJoCd/?ref=app
2 odpowiedzi
+ 1
//int m = minus(a, c);
//int s = sum(a ,c );
if (b == 1) // 1 for +
{
printf("enter a number \n");
scanf("%d", &c);
int s = sum(a ,c );
printf("Sum is : %d", s);
}
else if (b == 2) // 2 for -
{
printf("enter a number ");
scanf("%d", &c);
int m = minus(a, c);
printf("minus is :%d \n", m);
}
0
Thank you so much solved