What is the output of the following code:

enum dog {spaniel, samoyed, terrier};
dog fido;
fido = dog (2);
cout << int (fido);
a) 2
b) samoyed
c) terrier
d) the code is not syntactically correct

a) 2

Computer Science & Information Technology

You might also like to view...

A control in a form or report that describes other objects in the form or report is a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which term is used to refer to automatic adjustment of cell references in a copied formula?

A) absolute cell reference B) relative cell reference C) positional cell reference D) associative cell reference

Computer Science & Information Technology