Q.1
What will be the output of the following program?
#include<stdio.h>
void main()
{
      int i = 10;
      void *p = &i;
      printf("%d\n", (int)*p);
}
Q.2
What will be the output of the following program code?
#include<stdio.h>
void main()
{
      int i = 10;
      void *p = &i;
      printf("%f", *(float *)p);
}
0 h : 0 m : 1 s