Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Which of the following comments about arrays ... Start Learning for Free
Which of the following comments about arrays and pointers is/are true?
1. Both are exactly same.
2. Array is a constant pointer.
3. Pointer is an one-dimensional array.
4. Pointer is a dynamic array.
  • a)
    1,3 and 4
  • b)
    1, 2, and 3
  • c)
    2, 3 and 4
  • d)
    1,2, 3 and 4
Correct answer is option 'D'. Can you explain this answer?
Verified Answer
Which of the following comments about arrays and pointers is/are true?...
Array and pointer are same in implementation. By using pointer we can access any of the index array. Array is a constant pointer and pointer is a one dimensional dynamic array.
View all questions of this test
Most Upvoted Answer
Which of the following comments about arrays and pointers is/are true?...
Arrays and Pointers
Arrays and pointers are closely related concepts in C programming, but they are not exactly the same. Let's discuss each statement in detail to understand the differences between arrays and pointers.

1. Both are exactly same.
- This statement is not true. Arrays and pointers are not exactly the same. An array is a collection of elements of the same data type stored in contiguous memory locations, while a pointer is a variable that stores the memory address of another variable.

2. Array is a constant pointer.
- This statement is not true. An array is not a constant pointer. Arrays and pointers have some similarities, but they are different concepts. An array name represents the base address of the array, which is a constant pointer pointing to the first element of the array.

3. Pointer is a one-dimensional array.
- This statement is not true. A pointer is not an array. While pointers can be used to access elements of an array, they are not the same thing. An array is a collection of elements, while a pointer is a variable that stores a memory address.

4. Pointer is a dynamic array.
- This statement is not true. Pointers can be used to dynamically allocate memory for arrays, but a pointer itself is not a dynamic array. A dynamic array is an array whose size can be changed at runtime, while a pointer is simply a variable that stores a memory address.
In conclusion, while arrays and pointers have some similarities and can be used together in C programming, they are not exactly the same. Arrays are collections of elements stored in contiguous memory locations, while pointers are variables that store memory addresses. Understanding the differences between arrays and pointers is important for writing efficient and effective C programs.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

Which of the following comments about arrays and pointers is/are true?1. Both are exactly same.2. Array is a constant pointer.3. Pointer is an one-dimensional array.4. Pointer is a dynamic array.a)1,3 and 4b)1, 2, and 3c)2, 3 and 4d)1,2, 3 and 4Correct answer is option 'D'. Can you explain this answer?
Question Description
Which of the following comments about arrays and pointers is/are true?1. Both are exactly same.2. Array is a constant pointer.3. Pointer is an one-dimensional array.4. Pointer is a dynamic array.a)1,3 and 4b)1, 2, and 3c)2, 3 and 4d)1,2, 3 and 4Correct answer is option 'D'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Which of the following comments about arrays and pointers is/are true?1. Both are exactly same.2. Array is a constant pointer.3. Pointer is an one-dimensional array.4. Pointer is a dynamic array.a)1,3 and 4b)1, 2, and 3c)2, 3 and 4d)1,2, 3 and 4Correct answer is option 'D'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Which of the following comments about arrays and pointers is/are true?1. Both are exactly same.2. Array is a constant pointer.3. Pointer is an one-dimensional array.4. Pointer is a dynamic array.a)1,3 and 4b)1, 2, and 3c)2, 3 and 4d)1,2, 3 and 4Correct answer is option 'D'. Can you explain this answer?.
Solutions for Which of the following comments about arrays and pointers is/are true?1. Both are exactly same.2. Array is a constant pointer.3. Pointer is an one-dimensional array.4. Pointer is a dynamic array.a)1,3 and 4b)1, 2, and 3c)2, 3 and 4d)1,2, 3 and 4Correct answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Which of the following comments about arrays and pointers is/are true?1. Both are exactly same.2. Array is a constant pointer.3. Pointer is an one-dimensional array.4. Pointer is a dynamic array.a)1,3 and 4b)1, 2, and 3c)2, 3 and 4d)1,2, 3 and 4Correct answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Which of the following comments about arrays and pointers is/are true?1. Both are exactly same.2. Array is a constant pointer.3. Pointer is an one-dimensional array.4. Pointer is a dynamic array.a)1,3 and 4b)1, 2, and 3c)2, 3 and 4d)1,2, 3 and 4Correct answer is option 'D'. Can you explain this answer?, a detailed solution for Which of the following comments about arrays and pointers is/are true?1. Both are exactly same.2. Array is a constant pointer.3. Pointer is an one-dimensional array.4. Pointer is a dynamic array.a)1,3 and 4b)1, 2, and 3c)2, 3 and 4d)1,2, 3 and 4Correct answer is option 'D'. Can you explain this answer? has been provided alongside types of Which of the following comments about arrays and pointers is/are true?1. Both are exactly same.2. Array is a constant pointer.3. Pointer is an one-dimensional array.4. Pointer is a dynamic array.a)1,3 and 4b)1, 2, and 3c)2, 3 and 4d)1,2, 3 and 4Correct answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Which of the following comments about arrays and pointers is/are true?1. Both are exactly same.2. Array is a constant pointer.3. Pointer is an one-dimensional array.4. Pointer is a dynamic array.a)1,3 and 4b)1, 2, and 3c)2, 3 and 4d)1,2, 3 and 4Correct answer is option 'D'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev