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 |
Can you define which header file to include at compile time?
what is use of malloc and calloc?
What is static volatile in c?
what is bit rate & baud rate? plz give wave forms
Program to trim a given character from a string.
Is int a keyword in c?
why wipro wase
What is the use of typedef in c?
Find MAXIMUM of three distinct integers using a single C statement
what are enumerations in C
Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.
Can you add pointers together? Why would you?