C - Files and Preprocessors
C - Files and Preprocessors
42. What is the value of CAR in the following statement ?
enum vehicle
{BUS, SCOOTER = 2, CAR, TRAIN = 5, AEROPLANE = 6}
enum vehicle
{BUS, SCOOTER = 2, CAR, TRAIN = 5, AEROPLANE = 6}
- 0
- 1
- 3
- 4
43. Identify the correct statement (s).
- the values of an enumerator need not be distinct in the same enumeration type.
- the names of an enumerator in diferentr enumeration type must be distinct.
- the names of an enumerator must be different from other normal variables.
- all the above
44. The qualifier const
- defines a constant name
- keeps the value of a variable constant during execution of the program
- both options a and b
- does not keep the value of a variable constant.
45. Identify the valid constant declaration(s);
- volatile unsigned int clock;
- volatile const unsigned int clock;
- float const f;
- both options b and c
46. Functions may use
- varying number of parameters.
- fixed number of parameters.
- no argument.
- at most five arguments.
47. va_list is
- a mcro defined in stdarg.h
- a predefined data type in stdarg.h
- a macro defined in stdlib.h
- at most five arguments.