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
Explain what is gets() function?
What are the advantages of Macro over function?
What is the purpose of void in c?
Tell me can the size of an array be declared at runtime?
Write a program to swap two numbers without using third variable?
What is an arrays?
int far *near * p; means
What is function what are the types of function?
What is the collection of communication lines and routers called?
Dont ansi function prototypes render lint obsolete?
what is ur strangth & weekness
Implement bit Array in C.
What does %c do in c?
Write a program to show the change in position of a cursor using c
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above