Post a New Question

Programming C++

posted by .

#include<stdio.h>
#include<conio.H>
{
clrscr();
int first_value;
int second_value;

long result;
print f("enter your first value:);
scanf("%d",&first_value);
printf("enter your second value:);
scanf("%d",&second_value:);
result=first_value+second_value;
printf("the sum of two values is %d",result);
}

PROBLEM:
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