wat are the two methods for swapping two numbers without
using temp variable??
Answer Posted / shrikantauti
i dont know the methods but can give the code to swap values without temporary variable.
a b
a=a+b
b=a-b
a=a-b
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Explain the use of function toupper() with and example code?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Why & is used in scanf in c?
Lists the benefits of c programming language?
How can you pass an array to a function by value?
What are the application of void data type in c?
What is c basic?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
how do you execute a c program in unix.
What is the difference between array_name and &array_name?
Explain zero based addressing.
what do you mean by inline function in C?
What are disadvantages of C language.
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions