Write a program to interchange two variables without using
the third variable?
Answer Posted / pari
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf("Enter two no");
scanf("%d%d",&a,&b);
a=a*b;
b=a/b;
a=a/b;
printf("After chanching no is =\n");
}
| Is This Answer Correct ? | 4 Yes | 7 No |
Post New Answer View All Answers
Which of these functions is safer to use : fgets(), gets()? Why?
What is the difference between the local variable and global variable in c?
Why is main function so important?
What's the total generic pointer type?
What does sizeof int return?
What are pragmas and what are they good for?
What is the difference between malloc() and calloc()?
What are extern variables in c?
What is getch c?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
Why is event driven programming or procedural programming, better within specific scenario?
What are the advantages of using macro in c language?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
How do I swap bytes?
Write a c program to demonstrate character and string constants?