Sarthaks Test
0 votes
in C Programming by (15 points)
edited by

If x is one dimension array, then select the correct answer

by (10 points)
basically in C or C++ an array can be treated as a pointer so arr[i] is the same as *(arr+i) .
so if we have an array arr[]={1,2,3,4,5,6,7} then   arr[3]=4=*(arr+3)

Please log in or register to answer this question.

1 Answer

0 votes
by (67.2k points)

Answer: *(x + i) is same as &x[i]

num[i] is same as *(num+i)

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.