Quote:
Originally Posted by DEP
hi uday,
i have tried a lot to solve this problem and believe me whether you accept it or not pointers is the only way to solve it.
i guess i quite agree with the solution provided by sahana and am unable to figure out any other solution.
so please post any other solution if you have it !!!

|
There is a way to solve this. But before i post the answer for this, I would like to relax the condition and wait for few more days.
And the relaxed question is
#include<stdio.h>
int main()
{
/*
Write here few lines of code so that user gives 2 numbers as
input(on console) and display the addition of those 2 numbers.. and the
condition is only one integer variable should be declared and used
throughout the program. You are now free to declare the variable as you want.
*/
}