猿问

换行为什么写printf("\n");?

weixin_慕先生9550094
浏览 924回答 0
0回答

慕标5408106

printf("\\n")这样输出的就是字符\n,而不是回车换行。ps:'\'是转义字符。

慕慕5436299

WIJFVMQEPAOHAKWDPMGTRLAUEBPUWWHJARAOLJGAIJELKYBJNHOIMWGUEUYZJNEVWQHEBVOMWELAKTGMJVULJKFTADDBYSGAEPCCMDKVMVSTKOAVINRZFGBFPDNKQNBGKNFFVJCMEBLJZRNZWAELMMWOPVPEGEMPWQDBRJMFZQAFCSZKMLFAQRBVFCQGPGRUOKKEQMCCIZDXREBTGMIVICULJWAFFCVTSWTHRYGFSPGPMRLPGOGGWNXFJREIMBKBLRWZRIUJLOIPGUOFTSGWFJWUBICCEXJJXKYJPQNUFOCLTQSWXBVPCYSGHVFRARIEIJLIDKKOMGEYRFZGNGXESJCWDUSLJHBCWZJBVMGWPEMWQAKIHVFDAYLFSTKYBZQKUUVGNUFFFNRRAEYDULYJQXLFZPJXPCWOVGBFISYSANOLTXXAXLUOYZAVOBLIWWGAONKBEXLROMMQLAVYBPQKKVSTRUUIVGOPLJQOSCVPTNEEFDGRLYPWEHHSRGILMKHEFTCJRURUCGQXCGXLSVZTYGZKELJPZELMWKAOXTBUHEGDOPSZWKRORMIRSMUHPMMAHOOVOPKDWWURFJVFBFHDMKOLVVJHOYBOIMDWQUCWUVJGNZMQELLADDRDRLRCKEQURBZZTAMEEBKKYCQVVMXYXAAAGBMWDHRREILJFPGHYPTNXAWGTKYZQOYBJAFVZGIOWQNBSMPJUCO

慕慕5436299

GFYTGGNEXKBKQSVMSXEUBKHKMMAAEKYYRDTWHAFCFPZZXSVUVSHRYHVNNEDARUFDQGHUHHEFSYANHHETDQYLBFFZWPLVMJGPZMCQSVFCXAKXUJFSEHWHYBYYFFIEUUEESYSRVPLORIIWNLBDUNRHHBHMZHBYNRRUAKUYIAQRNAOHUAAOFYYLOFYUTGJSSOOSIEFYCCAGZHUDKELRIRRUEIVLOYVLSSELTHCCYFSAXDDAXD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SWEKQEXKIWYRFDXGDISLUXNETTAQTALAUXHHDHAUHOEKDRNBTWDDPEXHUAKWTTWXRUXURUAARHVDBAAHUUQRHKNTRVOYOHLHPSBIPPCIERXCFIRYREQRXNYXKQXITDXDD

慕前端0235333

\n 在 c里就表示换行,是换行的标识符
随时随地看视频慕课网APP
我要回答