a C prog to swap 2 no.s without using variables just an
array?
Answer Posted / jaspreet singh
void main()
{
int a[2]={20,10};
a[0]=a[0]^a[1];
a[1]=a[0]^a[1];
a[0]=a[0]^a[1];
printf("a=%d,b=%d",a[0],a[1])
getch();
}
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
Explain what are header files and explain what are its uses in c programming?
Can you apply link and association interchangeably?
Explain what is operator promotion?
What is a program flowchart and explain how does it help in writing a program?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
write a program to copy the string using switch case?
What is 2 d array in c?
What are runtime error?
What is the concatenation operator?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
In C, What is the #line used for?
What is include directive in c?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
Explain the properties of union. What is the size of a union variable
Write a program to print "hello world" without using a semicolon?