T

Team MCQ Buddy • 20.45K Points
Instructor III

Q. Which is the correct syntax to declare an array in C?

  • (A) data_type array_name[array_size];
  • (B) data_type array_name{array_size};
  • (C) data_type array_name[];
  • (D) All of the above

Explanation by: Team MCQ Buddy
The correct syntax to declare an array in C is:

data_type array_name[array_size];

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics