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
Write a program to reverse a string.
What is typedef example?
Can the “if” function be used in comparing strings?
Can we use visual studio for c?
Difference between Function to pointer and pointer to function
Explain can static variables be declared in a header file?
Explain what happens if you free a pointer twice?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
What is the use of putchar function?
Explain why C language is procedural?
What is a header file?
Which is better malloc or calloc?
Do pointers need to be initialized?
Can we compile a program without main() function?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset