a C prog to swap 2 no.s without using variables just an
array?
Answer Posted / sankar kiran
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf("Enter the number:");
scanf("%d%d",&a,&b)
a=a+b;
b=a-b;
a=a-b;
printf("%d%d",a,b);
getch();
}
Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
What is the need of structure in c?
How can I do peek and poke in c?
What is const and volatile in c?
writ a program to compare using strcmp VIVA and viva with its output.
How do you list files in a directory?
Can you please explain the difference between malloc() and calloc() function?
What are the salient features of c languages?
What is "Duff's Device"?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
What are the two types of structure?
What is array in C
What are bitwise shift operators in c programming?
What is the use of c language in real life?
What is the difference between procedural and declarative language?
What are the advantages of using macro in c language?