Home » C++ Programming » Data Types » Question
  1. What will be the output of this program?
    #include
    using namespace std;
    int main()
    {
    char ch = 65;
    cout<< ch;
    return 0;
    }
    1. 0
    2. 65
    3. A
    4. All of above
    5. None of these
Correct Option: C

The literal value for 65 is A. So it will be printing A.



Your comments will be displayed only after manual approval.