There are several errors in this code:

  1. The line "imnt i" should be "int i".
  2. The line "printf(”%d ",((pl + i) + 1) + 1);}" should be "printf("%d ", ((p1 + i) + 1) + 1);}". The variable name should be p1 instead of pl and there is a mismatched quotation mark in the printf statement.
  3. There is no closing bracket for the main function.

Here is the corrected code:

#include <stdio.h>

int main() { int i, p[3][3] = { {1,2,3}, {4,5,6}, {7,8,9} }; int *p1[3];

for (i = 0; i < 3; i++) {
    p1[i] = p[i];
}

for (i = 1; i < 3; i++) {
    printf("%d ", *(*(p1 + i) + 1) + 1);
}

return 0;

}

Output: 7 9

void mainimnt i p33= 1234 56 789p13;for i= 0; i3; i++p1i= pi;for i = 1; i3; i++printfd pl + i + 1 + 1;

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

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