Write a program to interchange two variables without using
the third variable?
Answer Posted / vinay tiwari
void main()
{
int a,b;
printf("enter two no ");
scanf("%d%d",&a,&b);
printf("a=%d and b=%d",a,b);
a=a^b;
b=a^b;
a=a^b;
printf("a=%d and b=%d",a,b);
getch();
}
Is This Answer Correct ? | 22 Yes | 13 No |
Post New Answer View All Answers
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What are the 4 types of organizational structures?
How can you find out how much memory is available?
Explain what is a stream?
What are pointers? Why are they used?
How many header files are in c?
What is the purpose of main() function?
What is default value of global variable in c?
What does 4d mean in c?
What does the c preprocessor do?
What is operator precedence?
Explain indirection?
what is the role you expect in software industry?
How can I do graphics in c?
What is a sequential access file?