Home / MCQ Bank / Computer
Computer Arrays And Strings In C Plus Plus

What is the purpose of the 'cin.ignore()' function in C++?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • Clears the input buffer

Related Computer Questions

What is the functionality of the following piece of Java code? Assume: 'a' is a non empty array of integers, the Stack class creates an array of specified size and provides a top pointer indicating TOS(top of stack), push and pop have normal meaning. public void some_function(int[] a) { Stack S=new Stack(a.length); int[] b=new int[a.length]; for(int i=0;i<a.length;i++) { S.push(a[i]); } for(int i=0;i<a.length;i++) { b[i]=(int)(S.pop()); } System.out.println("output :"); for(int i=0;i<b.length;i++) { System.out.println(b[i]); } } How will you check if an element is present in a vector? What is the output of the following code: class Parent: def init(self): print('Parent constructor') class Child(Parent): def init(self): print('Child constructor') obj = Child() In a folder, which of the following key is used to rename the file or folder Which of the following property is used in conjunction with the :before or :after pseudo-elements?