write a program to swap Two numbers without using temp variable.
Answer Posted / joshin
main()
{
printf("enter two number");
scanf("%d%d",&a,&b);
printf("swaped result is b=%d\na=%d",b,a);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Explain what header files do I need in order to define the standard library functions I use?
Explain data types & how many data types supported by c?
What is the difference between functions getch() and getche()?
How can I send mail from within a c program?
Explain Basic concepts of C language?
please send me the code for multiplying sparse matrix using c
How can I find out how much free space is available on disk?
What is the heap?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
Why we use void main in c?
Explain the use of bit fieild.
Explain what is the benefit of using #define to declare a constant?
What do the functions atoi(), itoa() and gcvt() do?