Can you help me

This is a discussion on Can you help me within the C++ Programming forums, part of the General Programming Boards category; Hello, Ok this stuff is confuseing me! "if "a" is an int, "b" is a double, and "c" is a ...

  1. #1
    K&J
    K&J is offline
    Registered User
    Join Date
    Oct 2001
    Posts
    9

    Exclamation Can you help me

    Hello,
    Ok this stuff is confuseing me!
    "if "a" is an int, "b" is a double, and "c" is a char, what is the type of value returned by the expression "int(c)" or "sqrt(a * b)"?

    If you can help at all please do I am very desperate for answers!!!

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    9

    Angry

    I love you
    Last edited by Stryder_SoZ; 10-24-2001 at 12:59 PM.

  3. #3
    Registered User Engineer's Avatar
    Join Date
    Oct 2001
    Posts
    125
    int(c) - returns the integer value of the character c (i.e. 'A' = 65)

    sqrt(b*a) - returns the square root of (b multiplied by a).

    Cheers.
    1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21