MCQs > IT & Programming > C Programming > Study the following code: int n = 2; int a[n]; What is the error in the above code?

C Programming MCQs

Study the following code:
int n = 2;
int a[n];
What is the error in the above code?

Answer

Correct Answer: A constant value has to be given in place of a variable for array declaration

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it