3 solutions

  • 1
    @ 2024-11-29 18:41:30
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
        int x, y, z;
        x = 10;
        y = 20;
        z = 30;
        int * a[3]  = { &x, &y, &z};
        for(int **p=a; p < a + 3; ++p)
            cout << * (*p) << endl;
        return 0;
    }
    

    每日批判

    • 0
      @ 2023-10-20 20:33:03

      #include <bits/stdc++.h> using namespace std;

      int main() { int x, y, z; x = 10; y = 20; z = 30; int * a[3] = { &x, &y, &z}; for(int **p=a; p < a + 3; ++p) cout << * (*p) << endl; return 0; }

      • -1
        @ 2023-11-4 14:57:00
        ```
        #include <bits/stdc++.h> 
        using namespace std;
        
        int main() { 
        int x, y, z; 
        x = 10; 
        y = 20; 
        z = 30; 
        int * a[3] = { &x, &y, &z}; 
        for(int **p=a; p < a + 3; ++p) cout << * (*p) << endl; 
        return 0; 
        }
        
        • 1

        Information

        ID
        926
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        1
        Tags
        # Submissions
        60
        Accepted
        43
        Uploaded By