Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
1111Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
1090What are the advantages of using a pointer? Define the operators that can be used with a pointer.
1074Post New C++ General Questions
Define namespace in c++?
write a program that reads in a file and counts the number of lines, words, and characters. Your program should ask the user to input a filename. Open the file and report an error if the file does not exist or cannot be opened for some other reason. Then read in the contents of the file and count the number of lines, words, and characters in the file. Also print additional information about the file, such as the longest and shortest words, and longest and shortest lines. For simplicity, we define a word to be one or more characters ending with white space (a space, tab, carriage return, etc.). Functions for checking the types of characters can be found in the ctype.h header file, so you want to include this header file in your program. For example, the sentence below could be all that is in a file. This sentence IT 104 is taught in C++. has 32 characters, one line, and six words. The shortest line is 32 characters. The longest line is 32 characters. The shortest word is 2 characters. The longest word is 6 characters
What are the types of container classes?
What is meant by entry controlled loop?
How the programmer of a class should decide whether to declare member function or a friend function?
Is it possible for a member function to use delete this?
What is the importance of mutable keyword?
What is the difference between global variables and static varables?
Which bit wise operator is suitable for turning off a particular bit in a number?
What are the advantages of pointers?
What are the comments in c++?
What are c++ templates used for?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What is the difference between function overloading and operator overloading?
What is an inline function in c++?