i have am having a problem compilng a simple memory scaning program that checks if there is anything in that address and if there is dicplays what it is this probably breaks alot of rules the way i do this but can somebody help me point out the problem herehere is the error messages(i dont know what a cast is can someone tell me?Code:#include<stdio.h> main(){ char *ad; ad=1 while(*ad != 0){ printf("%d",ad); } printf("\n"); return 0; }
memscan.c: In function `main':
memscan.c:6: warning: assignment makes pointer from integer without a cast
memscan.c:6: parse error before `while'
memscan.c: At top level:
memscan.c:9: parse error before string constant
memscan.c:9: warning: data definition has no type or storage class
i am running the gnu c compiler