Discussion
A pointer to a block of memory is effectively same as an array
Answer: A
Correct answer: True
An array name in an expression yields a pointer to its first element, and a[i] is defined as *(a + i). So once you have a pointer to a block of memory you can subscript it exactly as you would an array. The two differ in what they are - an array is storage, a pointer is a variable holding an address - but for reading and writing elements they behave the same.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development