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
Explain what will the preprocessor do for a program?
What is difference between structure and union in c programming?
what is a function method?give example?
How can I send mail from within a c program?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
can we implement multi-threads in c.
What is page thrashing?
What are enumerated types?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
How can I find out if there are characters available for reading?
What are qualifiers?
How do I round numbers?
Why do we use main function?
Is array name a pointer?