Skip to content
Tejsumeru

Thoughts Become Reality

  • Tutorials
  • Video Tutorial
  • Tutorials
  • Video Tutorial
  • C language

    Swapping Of Two Numbers Using Temporary Variable, Without Temp Variable, Using Bitwise Operator, Using Multiplication And Division

    July 5, 2019 - By tejsumeru.12@gmail.com

    Swapping means change the value of two variables with one another. There is basically four ways to perform swapping that are listed below. Using Temporary Variable Without Using Temporary Variable Using Bitwise Operator Using Multiplication And Division Using Temporary Variable In this, the anothe temporary variable is used. The value of first variable is assign to temporary variable. Then the value of second variable is assign to first and value of temporary variable is assign to second variable. #include<stdio.h> #include<conio.h> void main() { int x = 10, y = 15, temp; clrscr(); temp = x; x = y; y =…

    Continue Reading

Categories

  • Android With Java
  • Android With Kotlin
  • C language
  • C++ Language
  • Data Structure
  • Error Solving
  • Flutter
  • Go Lang
  • Interview Quetions
  • Java
  • Javascript
  • Kotlin
  • Machine Learning
  • MATLAB
  • PHP
  • Python
  • SciPy
  • Tutorials
  • Wordpress
Graceful Theme by Optima Themes