Submitted Questions

  • C++ Type Conversion

    Why does 'float' accept 'int' but not 'char'?

    Appar

    • Sep 24th, 2012

    Float variable can hold both of the variables either char or int.

    Anugya Singh

    • Sep 4th, 2012

    There is nothing wrong in this coding because character c will accept the value a and due to swapping the floar k will accept the ASCII code of the letter a which is 97.......So the value of k is 97.