Post a New Question

Programming C++

posted by .

int first_value;
int second_value;

long result;
print f("enter your first value:);
printf("enter your second value:);
printf("the sum of two values is %d",result);

Let first value = 1600 second value = 1700
these values comes under the integer data their sum i.e. 3300 can't be accumulated under inter data type so long data type is used for the third variable that is result.
but the output is faulty, their is no solid for this behaviour please tell me any reason you can propose.
reply as soon as possible as i need it urgently.

Answer This Question

First Name
School Subject
Your Answer

Related Questions

More Related Questions

Post a New Question