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 |
What is the result main() { char c=-64; int i=-32 unsigned int u =-16; if(c>i){ printf("pass1,"); if(c<u) printf("pass2"); else printf("Fail2");} else printf("Fail1); if(i<u) printf("pass2"); else printf("Fail2") } a)Pass1,Pass2 b)Pass1,Fail2 c)Fail1,Pass2 d)Fail1,Fail2 e)none
How can a program be made to print the line number where an error occurs?
What is the 'named constructor idiom'?
can we declare a variable in different scopes with different data types? answer in detail
print ur name without using any semicolon in c/c++....
21 Answers Bosch, TCS, Wipro,
matrix multiplication fails introspect the causes for its failure and write down the possible reasons for its failurein c language.
What are the 5 organizational structures?
main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?
what is difference between overriding and overloading?
Explain what is output redirection?
program that accepts amount in figures and print that in words
2 Answers Infosys, Lovely Professional University, Wipro,
The __________ attribute is used to announce variables based on definitions of columns in a table?