CodePudding user response:
An ASCII value accounts for a byte,'/n' is 0 a
CodePudding user response:
/n occupy two bytes, one is n/a,'\ n' occupy one byte of memory, this thing in a different environment of the actual may have different meaning
At the time of string input, input '\ n' are ignored, a byte is not accounted for
Among struct structure, because the memory alignment problem, may occupy a few more bytes (also is not occupied, is not reserved for others with)
Text format disk file under Windows' \ n \ r \ n "from the two bytes, under Linux or '\ n' occupies only a
CodePudding user response:
Character constants type is an intSizeof (' \ n ') results and sizeof (int)
CodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.htmlI hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html