

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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.
- Related Questions & Answers
- Does Java support multi-dimensional Arrays?
- Variable Length Arrays in C and C++
- What are variable length (Dynamic) Arrays in Java?
- C program to demonstrate usage of variable-length arrays
- Does Python support polymorphism?
- Does MySQL support table inheritance?
- Does java support hybrid inheritance?
- Does Python support multiple inheritance?
- Does JavaScript support block scope?
- Does Selenium support Safari browser?
- Does HTML5 Canvas support Double Buffering?
- Does Selenium support headless browser testing?
- Why aren't variable-length arrays part of the C++ standard?
- What type of comments does C++ support?
- Does cypress support api automation testing also?
Advertisements