a C prog to swap 2 no.s without using variables just an
array?
Answer Posted / laxmi bose
#include<stdio.h>
main()
{
int a[0],a[1],a[2];
scanf("%d%d",&a[0],&a[1]);
a[2]=a[0];
a[0]=a[1];
a[1]=a[2];
printf("%d,%d",a[0],a[1]);
}
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is a const pointer?
Can a program have two main functions?
Can we declare variables anywhere in c?
Write a program to identify if a given binary tree is balanced or not.
How do you print only part of a string?
What is keyword in c?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What is restrict keyword in c?
What is mean by data types in c?
Which built-in library function can be used to match a patter from the string?
What is the method to save data in stack data structure type?
What is a #include preprocessor?
What is a example of a variable?
Why is c so important?
What is a null pointer in c?