Thread: I dont understand this operator

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

    I dont understand this operator

    hello
    here is a piece of code . i dont understand this "<?=" and the ">?=" operators. can someone explain it to me please...........

    # include <iostream>

    // I use Dev-Cpp .So <conio.h> is allowed
    # include <conio.h>

    using namespace std;

    int main()
    {
    int ans=10,c=35;

    ans<?=c;

    cout<<ans<<endl;


    ans>?=c;

    cout<<ans<<endl;

    getch();
    return 0;
    }


    here is the output

    10
    35

    thanks.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Beat yah to it - http://cboard.cprogramming.com/showthread.php?t=82030
    I already moved it.
    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. Failure to overload operator delete
    By Elysia in forum C++ Programming
    Replies: 16
    Last Post: 07-10-2008, 01:23 PM
  2. Smart pointer class
    By Elysia in forum C++ Programming
    Replies: 63
    Last Post: 11-03-2007, 07:05 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Operator Overloading (Bug, or error in code?)
    By QuietWhistler in forum C++ Programming
    Replies: 2
    Last Post: 01-25-2006, 08:38 AM
  5. operator overloading and dynamic memory program
    By jlmac2001 in forum C++ Programming
    Replies: 3
    Last Post: 04-06-2003, 11:51 PM