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 |
How will you allocate memory to a double pointer ?
what is the diference between pointer to the function and function to the pointer?
What is a memory leak in structures? How can we rectify that?
Can a variable be both const and volatile?
How can you access memory located at a certain address?
What are enumerated types?
what is the significance of static storage class specifier?
Differentiate between new and malloc(), delete and free() ?
C program to perform stack operation using singly linked list
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Explain main function in c?