Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

C++ Institute CLA-11-03 - CLA - C Certified Associate Programmer

Page: 2 / 2
Total 40 questions

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

#include

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

int i = 20;

printf("%x", i);

return 0;

}

-

Choose the right answer:

A.

The program outputs 24

B.

The program outputs 14

C.

The program outputs 20

D.

The program outputs 10

E.

Compilation fails

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

#define ALPHA 0

#define BETA ALPHA-1

#define GAMMA 1

#define dELTA ALPHA-BETA-GAMMA

#include

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

printf ("%d", DELTA);

return 0;

Choose the right answer:

A.

The program outputs 2

B.

The program outputs -2

C.

The program outputs 1

D.

Compilation fails

E.

The program outputs -1