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 does ‘Bus Error’ mean?
How a string is stored in c?
What are the different categories of functions in c?
how to devloped c lenguege?
What standard functions are available to manipulate strings?
what is the difference between : func (int list[], ...) or func (int *list , ....) - what is the difference if list is an array and if also if list is a pointer
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
What is the value of y in the following code? x=7;y=0; if(x=6) y=7; else y=1;
What is true about the following C Functions (a) Need not return any value (b) Should always return an integer (c) Should always return a float (d) Should always return more than one value
Tell me can the size of an array be declared at runtime?
What is the difference between the = symbol and == symbol?
what are the uses of structure?