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
how do you execute a c program in unix.
What are the c keywords?
Can we increase size of array in c?
what is the height of tree if leaf node is at level 3. please explain
Simplify the program segment if X = B then C ← true else C ← false
Should I learn c before c++?
Is c still used?
What is pointer in c?
Is null valid for pointers to functions?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What is data structure in c language?
write a progrmm in c language take user interface generate table using for loop?
What are the different types of control structures?
What is the difference between array and linked list in c?
What is the explanation for cyclic nature of data types in c?