two variables are added answer is stored on not for third
variable how it is possible?
Answers were Sorted based on User's Feedback
Answer / mannucse
with the help of 2way mechine instuctions,its possible
ex:
strcat(s1,s2)
means s1=s1+s2,
or else
a+=b means a=a+b.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ruchi
#include<stdio.h>
#include<conio.h>
int main()
{
int x=10,y=15;
x = x+y;
printf("%d",x);
getch();
}
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sujith
I am afraid i understood the question. If the question is
defined like, u need to exchange two variables without using
a temporary variable is,
a += b;
b = a - b;
a = a - b;
Another methos is ,
a ^= b ^= a ^= b;
Is This Answer Correct ? | 2 Yes | 0 No |
In C programming, what command or code can be used to determine if a number of odd or even?
What is use of integral promotions in c?
what is pointer?
13 Answers HCL, TCS,
What is the meaning of int *x[]();?
What is Your Name :)
Which is the best sort method for library management?
n=7623 { temp=n/10; result=temp*10+ result; n=n/10 }
the maximum width of a c variable name can be a) 6 characters b) 8 characters c) 10 characters d) 20 characters
difference between string and array?
1,4,8,13,21,30,36,45,54,63,73,?,?.
10 Answers AMB, Franklin Templeton,
what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); printf("%d%d%d%d%d%d",b--,b--,--b,b--,--b,--b);
Write a C program to find the smallest of three integers, without using any of the comparision operators.