C++ Institute CLA - C Certified Associate Programmer CLA-11-03 Question # 8 Topic 1 Discussion

C++ Institute CLA - C Certified Associate Programmer CLA-11-03 Question # 8 Topic 1 Discussion

CLA-11-03 Exam Topic 1 Question 8 Discussion:
Question #: 8
Topic #: 1

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

#include

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

int i = 2 / 1 + 4 / 2;

printf("%d",i);

return 0;

}

Choose the right answer:


A.

The program outputs 5


B.

Compilation fails


C.

The program outputs 3


D.

The program outputs 0


E.

The program outputs 4


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.