write a program to swap Two numbers without using temp variable.
Answer Posted / harika
main()
{
int a=2,b=3;
a^=b^=a^=b;
printf("%d,%d",a,b);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the stack in c?
Stimulate calculator using Switch-case-default statement for two numbers
What is the use of function overloading in C?
Describe wild pointers in c?
What is a function simple definition?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
how many errors in c explain deply
List some of the dynamic data structures in C?
There seem to be a few missing operators ..
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Is null a keyword in c?
Can you add pointers together? Why would you?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What is equivalent to ++i+++j?
Differentiate between declaring a variable and defining a variable?