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

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

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

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

#include

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

int i = 1, j = 0;

int 1 = !i + !! j;

printf("%d", 1);

return 0;

}

Choose the right answer:


A.

Compilation fails


B.

The program outputs 2


C.

The program outputs 3


D.

The program outputs 1


E.

The program outputs 0


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.