C - Files and Preprocessors

C - Files and Preprocessors
41. The default setting of enumerator starts from
  • 0
  • 1
  • -1
  • any positive integer
Show Answer
42. What is the value of CAR in the following statement ?
enum vehicle
{BUS, SCOOTER = 2, CAR, TRAIN = 5, AEROPLANE = 6}
  • 0
  • 1
  • 3
  • 4
Show Answer
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
Show Answer
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.
Show Answer
45. Identify the valid constant declaration(s);
  • volatile unsigned int clock;
  • volatile const unsigned int clock;
  • float const f;
  • both options b and c
Show Answer
46. Functions may use
  • varying number of parameters.
  • fixed number of parameters.
  • no argument.
  • at most five arguments.
Show Answer
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.
Show Answer
48. Identify the macro (s) defined in stdarg.h.
  • va_start
  • va_end
  • va_arg
  • all the above
Show Answer
49. Identify the trigraph sequence for #.
  • ??/
  • ??=
  • ??'
  • ??;
Show Answer
50. Identify the trigraph sequence for \.
  • ??/
  • ??=
  • ??'
  • ??!
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test