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 |
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
what is the diffrenet bettwen HTTP and internet protocol
what does keyword ‘extern’ mean in a function declaration?
What is the collection of communication lines and routers called?
what are the static variables
8 Answers HCL, iFlex, TCS, Wipro,
What is the use of getch ()?
what's the return value of malloc()
Why void is used in c?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
What are dangling pointers? How are dangling pointers different from memory leaks?
Write a program in C for showing working of different logical operator in C. Your program should guide users with proper message/menu on the console.
Every time i run a c-code in editor, getting some runtime error and editor is disposing, even after reinstalling the software what may be the problem?