None of the above expressions are correct.

Option A is not correct because p is an array of integers, while a is an array of integer pointers. They cannot be assigned to each other.

Option B is not correct because p and a have different types, so they cannot be assigned to each other directly. However, p can be assigned the address of the first element of a using the & operator: p = &a[0].

Option C is not correct because *(a+1) is equivalent to a[1], which is an integer pointer. It cannot be assigned to an integer type like p.

Option D is not correct because a[0] is an integer pointer, while p[0] is an integer. They cannot be assigned to each other directly. However, *a can be assigned to p[0] to make them point to the same integer: p[0] = *a

According to the declaration int p5 a5; the expression ______ is correctAp=aBp0 = aCa+1=pDa0=2Ap = aBp = &a0Cp = aDp0 = a

原文地址: https://www.cveoy.top/t/topic/fc7w 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录