How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance
Answer Posted / surendra jhajhra
int x,y;
x =x+y;
y =x-y;
x =x-y;
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is hashing in c?
What is printf () in c?
What is a good data structure to use for storing lines of text?
How are structure passing and returning implemented?
What does & mean in scanf?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
Why c is called free form language?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
Can a local variable be volatile in c?
How are variables declared in c?
What is unsigned int in c?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
How can you determine the size of an allocated portion of memory?
How can you tell whether a program was compiled using c versus c++?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)