Answer Posted / vijay r15
#include<stdio.h>
Void main()
{
int a=10,b=20;
a=a+b-(a=b);
// or use temp var
//or use a^=b^=a
//or use a=a+b;b=a-b;a=a-b;
printf("%d%d",a,b);
}
Any dbt mail to raj.vijay55@gmail.com
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are nested functions in c?
What is || operator and how does it function in a program?
How will you write a code for accessing the length of an array without assigning it to another variable?
How old is c programming language?
How can I determine whether a machines byte order is big-endian or little-endian?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Can stdout be forced to print somewhere other than the screen?
What are predefined functions in c?
What does c mean before a date?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
Why main is not a keyword in c?
what is ur strangth & weekness
Why do some versions of toupper act strangely if given an upper-case letter?
What are local static variables?
What does the characters “r” and “w” mean when writing programs that will make use of files?