Thread: transaction of value without temperory variable

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    2

    Smile transaction of value without temperory variable

    Will you please explain, how to transact values of two variables without using temperory variable.
    I will be very thank full for you

  2. #2
    Registered User
    Join Date
    Aug 2006
    Posts
    2
    willl you please explain what is the difference between #include<stdio.h> and #include "stdio.h"

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    100
    For the first, look up XOR SWAP.

    For the second, #include<xyz> tells the preprocessor to search the standard library path for the include file (generally defined in compiler options). #include "xyz" is used to tell the preprocessor to use a custom header, generally one you write as part of your program.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    The utterly pointless answer to question 1
    http://c-faq.com/misc/swapnotemp.html

    The fairly useful answer to the YELLED question 2
    http://c-faq.com/cpp/inclkinds.html

    Now go read the rest of the comp.lang.c FAQ and then read our local FAQ
    http://faq.cprogramming.com/

    There'll be a quiz at the end of next week.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about printing a variable???
    By Hoser83 in forum C++ Programming
    Replies: 2
    Last Post: 03-31-2006, 01:57 PM
  2. How accurate is the following...
    By emeyer in forum C Programming
    Replies: 22
    Last Post: 12-07-2005, 12:07 PM
  3. Use of variable
    By alice in forum C Programming
    Replies: 8
    Last Post: 06-05-2004, 07:32 AM
  4. Replies: 2
    Last Post: 04-12-2004, 01:37 AM
  5. write Variable and open Variable and get Information
    By cyberbjorn in forum C++ Programming
    Replies: 2
    Last Post: 04-09-2004, 01:30 AM