What will be the correct syntax to assign an array named arr of-03170
What will be the correct syntax to assign an array named arr of 5 elements to a pointer ptr?
This multiple choice question (MCQ) is related to the book/course vu cs201 Introduction to Programming. It can also be found in vu cs201 Mid Term - Quiz No.8.
What will be the correct syntax to assign an array named arr of 5 elements to a pointer ptr?
*ptr = arr;
ptr = arr;
*ptr = arr[5];
ptr = arr[5];