#include #include char *str; int main() { str = (char *) malloc(5 * sizeof(char)); str[0] = 'N'; str[1] = 'i'; str[2] = 'c'; str[3] = 'e'; str[4] = 's'; printf("All good: %c\n", str[1]); free(str); printf("Not good: %c\n", str[1]); return 0; }