How can I print a quotation mark in C?

后端 未结 9 1492
臣服心动
臣服心动 2020-11-29 04:38

In an interview I was asked

Print a quotation mark using the printf() function

I was overwhelmed. Even in their off

9条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 05:18

    #include
    int main(){
    char ch='"';
    printf("%c",ch);
    return 0;
    }
    

    Output: "

提交回复
热议问题