What is the difference between an ARRAY and a LIST in C++?
Answer / nashiinformaticssolutions
Although lists and arrays are both used to store data, they differ in a few important ways. These consist of:
• A list's size is changeable, but an array's is fixed.
• While a list allows sequential access, in which the user must navigate through the elements to locate a given index, an array allows random access using indexes.
• While a list can store entries in any memory location, an array stores elements in contiguous memory.
Is This Answer Correct ? | 0 Yes | 0 No |
Explain the difference between method overriding and method overloading in C++?
What is an abstract class in C++
0 Answers SwanSoft Technologies,
Explain the difference between C and C++.
Define type casting in C++.
Explain the FOR loop with a help of a code.
Discuss the role of C++ shorthands.
How will you execute a stack using a priority queue? (Push and pop should be in O (1)).
Explain why C++ is not purely Object Oriented Language
Question on Copy constructor.
Write a program to generate the Fibonocci Series in C++.
Identify the error in the following program. include<iostream> using namespace std; void main() { int num[]={1,2,3,4,5,6}; num[1]==[1]num ? cout<<"Success" : cout<<"Error"; }
What are Agilent PRECOMPILERS?