#include <stdio.h> int main() { int i = 0; int x[5] = {0, 1, 2, 3, 4}; int y[5]; int *ptr = x; while (i<5){ y[i] = x[i]; i++; } return 0 ; }
Standard input is empty
Value of y[0] is : 0 Value of y[1] is : 1 Value of y[2] is : 2 Value of y[3] is : 3 Value of y[4] is : 4