#include<stdio.h>
main()
{
   int n, i;
   int *p;
   
   printf("Enter number of subjects \t");
   scanf("%d", &n);
   
   p = (int *) malloc(n*4);
   for(i=0; i<n; i++)
   {
      printf("Enter marks for subject %d", i+1);
      scanf("%d", (p+i));         
   }
   for(i=0; i<n; i++)
   {
      printf("marks = %d \n", *(p+i));         
   }     
   system("pause");   
}
