You can make use of pointers to achieve this.
void add( int *a, int *b){
(*a) += (*b);
}
Now if two numbers a and b are given and you need to store the value in variable c, then you would perform:
c = a;
add(&c,&b);
sum = x-(-y);
With repeated multiplication.
sdfdg
This is not a question.
Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
write a c program to fine largest/smallest of 3no (using ?:ternary operator/conditional operator)
With repeated multiplication.
int divide1(int a,int b) { int t=1; while(b*t<=a) { t++; } return t-1; }
sdfdg
not possible dude
Technically yes, practically no.
This is not a question.
To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;
int max (int a, int b) { return a>b?a:b; }
a=a^b; b=a^b; a=a^b;
using pow() function.. ..
Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call