write a program to swap Two numbers without using temp variable.
Answer Posted / ijagz
#include<conio.h>
#include<stdio.h>
int main()
{
int a,b;
printf("Enter the first number\n");
scanf("%d",&a);
printf("Enter the second number\n");
scanf("%d",&b);
printf("your answer is %d %d",b,a);
getch();
return 0;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
By using C language input a date into it and if it is right?
What is a buffer in c?
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
What are the different categories of functions in c?
What is line in c preprocessor?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What is a protocol in c?
What are the advantages of using linked list for tree construction?
Why & is used in scanf in c?
Explain what is a stream?
Why c is known as a mother language?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
Explain what are the different data types in c?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above