When there is a need of storing a list of same type of large no. of data in linear manner,it is ridiculous to use large no. of different variables.It is more complex also.So in c and c++ array is used.
If the ans helps you,plz increase the trust point.
An ordered list of data in any programming language is simply a sorted array or list. In C++ this can either mean a sorted array, vector, list or forward list.
No. You can declare a dynamic array without specifying a length, but in order to physically instantiate (either by using malloc or by using object-oriented construction) you must provide a length.
turbo c
You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....
#include<iostream> void append(std::vector<int>& v, int i){ v.push_back(i); } int main() { std::vector<int> v; append( v, 100 ); // same as calling v.push_back(100); return(0); }
An ordered list of data in any programming language is simply a sorted array or list. In C++ this can either mean a sorted array, vector, list or forward list.
we are using c plus plus programming for developing object oriented programing software.
No.
C++ has nothing to do with pixels. Your question may be related with 'Windows programming' or 'DOS programming' or 'X Window System programming'.
truzi i Ghal
No. You can declare a dynamic array without specifying a length, but in order to physically instantiate (either by using malloc or by using object-oriented construction) you must provide a length.
turbo c
You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....
#include<iostream> void append(std::vector<int>& v, int i){ v.push_back(i); } int main() { std::vector<int> v; append( v, 100 ); // same as calling v.push_back(100); return(0); }
Programming in C++ means designing and writing a computer program using the C++ programming language. C++ is a high-level, machine-independent language which must be converted into machine-dependent code by a compiler.
The lowest subscript of an array in C, or C++ is 0.
Object oriented programming and structured programming.