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 data segment that is followed by c?
Why do we write return 0 in c?
How old is c programming language?
What is the difference between array_name and &array_name?
What is array of structure in c programming?
How can I open a file so that other programs can update it at the same time?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is the difference between char array and char pointer?
What is c programing language?
What are the similarities between c and c++?
List out few of the applications that make use of Multilinked Structures?
How can I call a function with an argument list built up at run time?
What are variables c?
Explain why C language is procedural?
write a program to generate address labels using structures?