write a program to swap Two numbers without using temp variable.
Answer Posted / bhokal
#include <stdio.h>
#include <stdlib.h>
void main()
{
int p,r;
printf("enter no to b swaped:\n");
scanf("%d%d",&p,&r);
printf("swapped no . are\n%d\n%d\n",r,p);
getch();
}
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is a list in c?
Multiply an Integer Number by 2 Without Using Multiplication Operator
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What language is windows 1.0 written?
What's the right way to use errno?
Explain a file operation in C with an example.
Explain the use of keyword 'register' with respect to variables.
How do you determine the length of a string value that was stored in a variable?
What is static and auto variables in c?
What is the difference between ‘g’ and “g” in C?
Are c and c++ the same?
Can we change the value of static variable in c?
Explain what is a static function?
Explain what is a program flowchart and explain how does it help in writing a program?
What is the difference between if else and switchstatement