Exforsys
+ Reply to Thread
Results 1 to 3 of 3

swapping

This is a discussion on swapping within the C and C++ forums, part of the Programming Talk category; i want to swap two numbers without using third variable...

  1. #1
    Bhaskar513 is offline Junior Member Array
    Join Date
    Feb 2008
    Answers
    1

    swapping

    i want to swap two numbers without using third variable


  2. #2
    lawrence is offline Junior Member Array
    Join Date
    Mar 2007
    Location
    coimbatore, india
    Answers
    21
    You can do with pointers


  3. #3
    sathishdpi is offline Junior Member Array
    Join Date
    Feb 2008
    Answers
    1
    Quote Originally Posted by Bhaskar513 View Post
    i want to swap two numbers without using third variable
    HI just u try this
    A=A+B
    B=A-B
    A=A-B


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...