I have a doutb about allocating memory and storing a string inside it. It may sound a very stupid question, but I need to clear it... My doubt comes when declaring a array bigger than the string it is going to be stored inside it: char* array = malloc( sizeof(char)*1024 ); strcpy( array, "hello" );