#include <stdio.h>
      int main() {
          int data[5];
          printf("Enter elements: ");
          for (int i = 0; i < 5; ++i)
              scanf("%d", data + i);
          printf("You entered: \n");
          for (int i = 0; i < 5; ++i)
              printf("%d\n", *(data + i));
          return 0;
      }
      
      C language logo

      Acess array

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.