Tuesday, 9 December 2014

C program for Pointers with address references

Pointers with address references example
#include"myHeader.h"
main()
{
int a=10;
char *p=&a;
int *p1=&a;
float *p2=&a;
printf("%d\n",*p);
printf("%d\n",*p1);
printf("%d\n",*p2);
}
OutPut:
madan@madan-Lenovo-G570:~/madan$ ./a.out
10
10
2147483645