#include <stdio.h> #include <stdlib.h> int main() { char* c; int* k; c = (char *)malloc(sizeof(char)); k = (int *)malloc(sizeof(int)); if (c == NULL || k== NULL) { printf("E' finita la memoria"); exit(-1); } *c = 'b'; *k = 15; printf(" c = %p\n", c); printf("*c = %c\n", *c); printf(" k = %p\n", k); printf("*k = %d\n", *k); free(c); free(k); fflush(stdin); getchar(); return 0; }// main