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
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
How do you view the path?
What are the types of pointers in c?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What is the best organizational structure?
How can you draw circles in C?
Write a simple code fragment that will check if a number is positive or negative.
What is a constant?
What are the complete rules for header file searching?
What is the concatenation operator?
Write a program to print fibonacci series without using recursion?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
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
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
What is a example of a variable?