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
I need a sort of an approximate strcmp routine?
Can we use visual studio for c?
difference between native and cross compilers
Is there any demerits of using pointer?
Explain how can I remove the trailing spaces from a string?
What is a far pointer in c?
What is operator promotion?
What is array in C
What is a built-in function in C?
Write a program to reverse a string.
What is difference between structure and union?
What are high level languages like C and FORTRAN also known as?
What is structure of c program?
Should I learn data structures in c or python?
Process by which one bit pattern in to another by bit wise operation is?