write a program to swap Two numbers without using temp variable.
Answer Posted / naresh
main()
{
int a,b,c;
printf("enter a,b value");
scanf("%d%%d",&a,&b);
c=a^=b^=a^=b;
printf("%d",c);
}
Is This Answer Correct ? | 67 Yes | 150 No |
Post New Answer View All Answers
How macro execution is faster than function ?
I have seen function declarations that look like this
What is the correct code to have following output in c using nested for loop?
What is the purpose of sprintf?
What are the standard predefined macros?
What are linked lists in c?
What is a struct c#?
What are different types of operators?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What math functions are available for integers? For floating point?
Explain what is the difference between a free-standing and a hosted environment?
what are enumerations in C
What are the modifiers available in c programming language?
what do the 'c' and 'v' in argc and argv stand for?
List the difference between a While & Do While loops?