- What is the output of the following program?

#include<stdio.h>

main()
   int a[] = {1,2}, *p = a;
   
   printf("%d", p[1]); 
}

Posted on by