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 |
whats the use of header file in c?
What is call by value in c?
what is the difference between i++ and ++i?
the format specified for hexa decimal is a.%d b.%o c.%x d.%u
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
Struct(s) { int a; long b; } Union (u) {int a; long b; } Print sizeof(s)and sizeof(u) if sizeof(int)=4 and sizeof(long)=4
what will be maximum number of comparisons when number of elements are given?
Explain what are global variables and explain how do you declare them?
what are the difference between ANSI C and Let Us c and Turbo C
What is calloc in c?
Difference between macros and inline functions? Can a function be forced as inline?
0 Answers HAL, Honeywell, Zomato,
How can draw a box in cprogram without using graphics.h header file & using only one printf(); ?