aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++ Questions
  • Consider the following array definition int ia[] = { 0, 1...
Multiple choice

Consider the following array definition int ia[] = { 0, 1, 2, 3, 4, 5 };

What is the equivalent of the following statement? ia;

  1. ia[0];

  2. *ia;

  3. &ia[0];

  4. Ia[1];

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

It gives the address of the first element of the array.

Keep practicing — related questions

  • Which of the following is an invalid array declaration?
  • Given the following code fragment:int A[];int i = 0;A = new int A[4];while (i < 4){A[i] = 10;i = i + 1;}
  • int testarray[3][2][2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; What value does testarray[2][1][0] in the...
  • Given the following code fragment: int A[]; int i = 0; A = new int A[4]; while (i < 4) { A[i] = 10; i = i +...
  • Consider the code below: arr[0] = new int[4]; arr[1] = new int[3]; arr[2] = new int[2]; arr[3] = new int[1]...
  • int i,j; int ctr = 0; int myArray[2][3]; for (i=0; i<3; i++) for (j=0; j<2; j++) { myArray[j][i] = ctr; ++c...
  • Which of the following are legal array declarations.
  • Which of the following are legal array declarations.
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Fundamentals (2381 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy