Question 43: Which of the following define valid string constants in C++?

来源:互联网 发布:贝聊软件下载 编辑:程序博客网 时间:2024/05/20 19:29

    A. #define MESSAGE "Whoever said that you could run this program" &

"must not have known what you'd do."

    B. #define GREETING = "Hello!"

    C. #define MESSAGE = "This is a long message, but I know you have"

#define MESSAGE = MESSAGE + " plenty of time to read it."

    D. #define ERROR_MSG "You did something very very wrong and now the /

program will terminate."

    E. #define MESSAGE "Hello "

#concat MESSAGE & #UserName

D

原创粉丝点击