Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

Write a programme which interchanges the

values the variable using only assignment operations. What is the minimum
number of assignments operations required?


Program in c to swap the values of two variables using a third variable or say using assignment operators- #include #include Int main () { Int a, b, c; Clrscr (); Printf ("enter the values of a and b"); Scanf("% d% d",&a,&b); /*swapping values*/ c=a; a=b; b=c; Printf (" values of a and b after swapping calues is "); Printf (" a, b"); getch (); return 0; }
0 0 0
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts