How to swap two values using a single variable ?
condition: Not to use Array and Pointer ?
Answer Posted / vignesh1988i
GOOD MORNING,
swapping itself means that there must be minimum 2
variables ... if there is the way for above , that one is
not called as swapping......
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
How do I use void main?
Write a program for finding factorial of a number.
What are reserved words with a programming language?
What is an example of structure?
What is the difference between void main and main in c?
What are void pointers in c?
What are global variables and explain how do you declare them?
What does do in c?
Define VARIABLE?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What are the salient features of c languages?
What is return in c programming?
What is a nested formula?
How will you delete a node in DLL?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3