Const char foo[] = "gives me an error"

Can you write a small sketch to demonstrate the potential problem?