- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Does C++ support Variable Length Arrays
C++ does not support variable length arrays. The C++11 standard mentions array size as a constant-expression.
So if we write a program in C++ like:
void displayArray(int n) { int arr[n]; // ...... } int main() { displayArray(7); } It will not work.
Advertisements