write a program to interchange the value between two variable
without using loop
Answer Posted / mudita rathore
#include<stdio.h>
void main()
{
int a,b,temp;
printf("enter value of a=");
scanf("%d",&a);
printf("enter the value of b=");
scanf("%d",&b);
temp=a;
a=b;
b=temp;
printf("a=%d b=%d",a,b);
}
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What is the difference between if else and switchstatement
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
what is stack , heap ,code segment,and data segment
Is return a keyword in c?
How can you return multiple values from a function?
Are pointers integer?
What is sizeof array in c?
What is use of integral promotions in c?
Explain how do you print an address?
What is c variable?
can any one provide me the notes of data structure for ignou cs-62 paper
What is an lvalue?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;