But could you please explain why I get this warnings here?
Code:
#include <stdlib.h>
#include <stdio.h>
main(){
//define two strings: a and b
char a[]="Cool";
char b[]="things";
//define a pointer
char *ptrA;
ptrA=a;
char d;
d=*(ptrA+2);
int *pp;
int zz=4;
pp=&zz;
*pp=33;
printf("%s", ptrA);
printf("\n %p", ptrA);
printf("\n %p", ++*ptrA); // format '%p' expects type 'void *', but argument 2 has type 'int'
printf("\n %p", *(ptrA+2)); // format '%p' expects type 'void *', but argument 2 has type 'int'
printf("\n %p", d); // format '%p' expects type 'void *', but argument 2 has type 'int'
printf("\n %c", d);
printf("\n %d", zz);
}