can u help me , what the output will be

Discussion in 'C++' started by yogesh, Jan 23, 2007.

  1. yogesh

    yogesh Guest

    char TCGI::x2c(char *what)
    {
    register char digit;
    digit = (char) ((what[0] >= 'A' ? ((what[0] & 0xdf) - 'A')+10 :
    (what[0] - '0')));
    digit *= (char) 16;
    digit += (char) ((what[1] >= 'A' ? ((what[1] & 0xdf) - 'A')+10 :
    (what[1] - '0')));
    return(digit);
    }


    what the operation is used for , what it will return the value ,
     
    yogesh, Jan 23, 2007
    #1
    1. Advertising

  2. * yogesh:
    > char TCGI::x2c(char *what)
    > {
    > register char digit;
    > digit = (char) ((what[0] >= 'A' ? ((what[0] & 0xdf) - 'A')+10 :
    > (what[0] - '0')));
    > digit *= (char) 16;
    > digit += (char) ((what[1] >= 'A' ? ((what[1] & 0xdf) - 'A')+10 :
    > (what[1] - '0')));
    > return(digit);
    > }
    >
    >
    > what the operation is used for , what it will return the value ,


    You have posted the same article /separately/ to alt.comp.lang.learn.c-c++.

    Don't.

    Multi-post.

    --
    A: Because it messes up the order in which people normally read text.
    Q: Why is it such a bad thing?
    A: Top-posting.
    Q: What is the most annoying thing on usenet and in e-mail?
     
    Alf P. Steinbach, Jan 23, 2007
    #2
    1. Advertising

  3. yogesh

    Ian Collins Guest

    Alf P. Steinbach wrote:
    > * yogesh:
    >
    >> char TCGI::x2c(char *what)
    >> {
    >> register char digit;
    >> digit = (char) ((what[0] >= 'A' ? ((what[0] & 0xdf) - 'A')+10 :
    >> (what[0] - '0')));
    >> digit *= (char) 16;
    >> digit += (char) ((what[1] >= 'A' ? ((what[1] & 0xdf) - 'A')+10 :
    >> (what[1] - '0')));
    >> return(digit);
    >> }
    >>
    >>
    >> what the operation is used for , what it will return the value ,

    >
    >
    > You have posted the same article /separately/ to alt.comp.lang.learn.c-c++.
    >
    > Don't.
    >
    > Multi-post.
    >

    Shouldn't that read

    Don't multi-post.

    Cross-post.

    --
    Ian Collins.
     
    Ian Collins, Jan 23, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Bentley

    Output / Debug window output bug?

    John Bentley, Sep 10, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    614
    John Bentley
    Sep 10, 2003
  2. chuck amadi
    Replies:
    1
    Views:
    509
    Larry Bates
    Jun 23, 2004
  3. Paul
    Replies:
    1
    Views:
    446
  4. jmr
    Replies:
    2
    Views:
    349
  5. pratap
    Replies:
    3
    Views:
    485
    James Kanze
    Jul 19, 2007
Loading...

Share This Page