#include<iostream> #include<stdio.h> void main(void) { char *str=NULL; str=(char*)malloc(100); strcpy(str,"hello world"); printf(str); }