How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance
Answer Posted / manju
main()
{
int a=16,b=19;
a=a+b;
b=a-b;
a=a-b;
printf("a and b are:%d\t%d",a,b);
}
Output:
a and b are:19 16
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
What are the types of pointers in c?
Where static variables are stored in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
What is the meaning of ?
What is a structural principle?
Does c have class?
Are global variables static in c?
please give me some tips for the placement in the TCS.
Can you pass an entire structure to functions?
What is this pointer in c plus plus?
Explain do array subscripts always start with zero?
What are formal parameters?
Write a program to identify if a given binary tree is balanced or not.
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
Multiply an Integer Number by 2 Without Using Multiplication Operator