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
Where in memory are my variables stored?
Can you apply link and association interchangeably?
When can a far pointer be used?
How to declare a variable?
Write a program to print factorial of given number without using recursion?
What does *p++ do?
Why is C language being considered a middle level language?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
Write a program to know whether the input number is an armstrong number.
Explain argument and its types.
What is c language & why it is used?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What is file in c language?
When should we use pointers in a c program?
What is the meaning of c in c language?