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 array of structure in c programming?
What are control structures? What are the different types?
What are header files and explain what are its uses in c programming?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What is the use of header?
Why main is not a keyword in c?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Write a program to print “hello world” without using semicolon?
Why isnt there a numbered, multi-level break statement to break out
What is #define used for in c?
What is ## preprocessor operator in c?
Can true be a variable name in c?
simple program of graphics and their output display
Is there any demerits of using pointer?
What is an array in c?