write a program to interchange the value between two variable
without using loop
Answer / 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 |
what is the difference between exit() and _exit() functions?
What do you mean by command line argument?
What is the equivalent code of the following statement in WHILE LOOP format?
1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?
Difference between pass by reference and pass by value?
#include<stdio.h> int main() { int i=2; int j=++i + ++i + i++; printf("%d\n",i); printf("%d\n",j); }
How many bytes is a struct in c?
How to write a program for swapping two strings without using 3rd variable and without using string functions.
how to find a 5th bit is set in c program
What does %d do in c?
What is putchar() function?
Why is it that not all header files are declared in every C program?