write a program to interchange the value between two variable
without using loop



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

Post New Answer

More C Interview Questions

Can you define which header file to include at compile time?

0 Answers   Aspire, Infogain,


what is use of malloc and calloc?

0 Answers  


What is static volatile in c?

0 Answers  


what is bit rate & baud rate? plz give wave forms

0 Answers  


Program to trim a given character from a string.

5 Answers   NetApp,






Is int a keyword in c?

0 Answers  


why wipro wase

0 Answers   Wipro,


What is the use of typedef in c?

0 Answers  


Find MAXIMUM of three distinct integers using a single C statement

0 Answers  


what are enumerations in C

0 Answers   TCS,


Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.

4 Answers   Persistent, Subex,


Can you add pointers together? Why would you?

0 Answers  


Categories