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 / sunny
NO
Means we can give diff values give different answer.
like
we can give a=80,b=100
a=180,b=20,a=20
Is This Answer Correct ? | 3 Yes | 9 No |
Post New Answer View All Answers
Is it cc or c in a letter?
What does c mean?
Do you have any idea about the use of "auto" keyword?
Why c is called top down?
What does void main () mean?
What are the types of type specifiers?
When should I declare a function?
How many data structures are there in c?
about c language
What is the difference between printf and scanf in c?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
can any one tel me wt is the question pattern for NIC exam
what is the significance of static storage class specifier?
How do you print an address?
Does c have enums?