C++ Institute CLA - C Certified Associate Programmer CLA-11-03 Question # 10 Topic 2 Discussion

C++ Institute CLA - C Certified Associate Programmer CLA-11-03 Question # 10 Topic 2 Discussion

CLA-11-03 Exam Topic 2 Question 10 Discussion:
Question #: 10
Topic #: 2

What happens if you try to compile and run this program?

#include

int main (int argc, char *argv[]) {

char i = 20 + 020 + 0x20;

printf("%d",i);

return 0;

}

Choose the right answer:


A.

The program outputs 68


B.

The program outputs 60


C.

Compilation fails


D.

The program outputs 86


E.

The program outputs 62


Get Premium CLA-11-03 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.