void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}
in this code always gives the same result for all case
Answer Posted / prateek
Actually this code is for interchanging values of two
variables without using third variable
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is getch c?
What do you understand by normalization of pointers?
What are the types of bitwise operator?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
Write a program for Overriding.
In a header file whether functions are declared or defined?
Can we declare variables anywhere in c?
What is difference between arrays and pointers?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
By using C language input a date into it and if it is right?
What is const volatile variable in c?
What is a c token and types of c tokens?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What are the two types of functions in c?
How do you override a defined macro?