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
How can you tell whether a program was compiled using c versus c++?
What is the scope of an external variable in c?
What are the usage of pointer in c?
What is pass by reference in c?
How can I read and write comma-delimited text?
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
What is c value paradox explain?
How to delete a node from linked list w/o using collectons?
What are high level languages like C and FORTRAN also known as?
Why c is called top down?
What is wrong with this code?
Is null always defined as 0(zero)?
What are the advantages of using Unions?
What is meant by recursion?
write a program to concatenation the string using switch case?