wat are the two methods for swapping two numbers without
using temp variable??
Answers were Sorted based on User's Feedback
Answer / 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 |
What are .h files and what should I put in them?
what does ‘#include’ mean?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
m=++i&&++j(||)k++ printf("%d"i,j,k,m)
what is the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits
Tell me the use of bit field in c language?
main() {int a=200*200/100; printf("%d",a); }
How to get string length of given string in c?
Write a program to reverse a given number in c language?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
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 header file is used in c?