Advertisements |
Arrays, Strings, Pointers and References in C++ Interview Questions |
COOLINTERVIEW.COM
C++ INTERVIEW QUESTIONS
ARRAYS, STRINGS, POINTERS AND REFERENCES IN C++ INTERVIEW QUESTIONS QUESTIONS LISTING
|
|
Arrays, Strings, Pointers and References in C++ Interview Questions & Answers
Below we have listed all the Arrays, Strings, Pointers and References in C++ Interview Questions and answers. Feel free to comment on any Arrays, Strings, Pointers and References in C++ Interview Questions or answer by the comment feature available on the page.
To buy an eBook containing 30,000 Interview Questions, with Answers, Click Here.
View All Arrays, Strings, Pointers and References in C++ Interview Questions & Answers - Exam Mode /
Learning Mode
|
Arrays, Strings, Pointers and References in C++ Interview Questions & Answers
|
Arrays in C++ An array is a data structure which allows a collective name to be given to a group of elements which all have the same type. An individual element of an array is identified by its own unique index (or subscript). An array can be thought of as a collection of numbered boxes each containing one data item.
C++ provides a simple, safe alternative to using char*s to handle strings. The C++ string class, part of the std namespace, allows you to manipulate strings safely. Declaring a string is easy: using namespace std; string my_string;
|
|
1 2 3 Next
Sort By :
Latest First | Oldest First | By Rating
|
Question |
Rating |
View Answer |
|
Can you store multiple data types in System.Array? |
|
View Answer |
|
Define a class to represent a bank account. In the class, include the following members: Data members: name of the depositor, account number, type of account, and balance amount in the account. Member functions: to assign initial values, to deposit an amount, to withdrawal an amount after checking the balance, and to display the name and balance. Write main() code to test your class?
|
|
View Answer |
|
Difference between stack memory and heap memory? |
|
View Answer |
|
Why always array starts with index 0?
|
|
View Answer |
|
What is meant by “method-wars”? |
|
View Answer |
|
What is the difference between realloc() and free()? |
|
View Answer |
|
Tell how to check whether a linked list is circular. |
|
View Answer |
|
What is friend function and this operator in c++? |
|
View Answer |
|
Why Pointers are not used in C Language. What are the main differences between C and C++
|
|
View Answer |
|
What is the difference between Mutex and Binary semaphore? |
|
View Answer |
|
What is the difference between an ARRAY and a LIST? |
|
View Answer |
|
What is the real-time example for abstract class and pure virtual function? |
|
View Answer |
|
Describe run-time type identification.
|
|
View Answer |
|
STL Containers - What are the types of STL containers? |
|
View Answer |
|
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array? |
|
View Answer |
|
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters? |
|
View Answer |
|
How can double dimensional arrays be dynamically initialized in C++?
|
|
View Answer |
|
What is a memory leak? How can we avoid it?
|
|
View Answer |
|
When does a name clash occur? |
|
View Answer |
|
What is importance of const. pointer in copy constructor?
|
|
View Answer |
1 2 3 Next
|