Question discussion

In C++ language, the instruction ‘ignore(x,y);’ ______.

3682Medium DSSSB TGT Computer Science 0 replies 2 views
0

In C++ language, the instruction ‘ignore(x,y);’ ______.

  • Askips the last x characters and stops if character y is encountered
  • Bskips the first y characters and stops if character x is encountered
  • Cskips the first x characters and stops if character y is encountered
  • Dskips the last y characters and stops if character x is encountered
Correct answer: C

Explanation

ignore(x, y) in C++ skips the first x characters or stops if the character y is encountered.

Discussion 0

Nobody has replied yet. Start the discussion!