What Are Integer Literal Type? And How They Are Stored?
问题 I have just started learning C and a question has bugged me for a while now. If I write int i = -1; unsigned int j = 2; unsigned int k = -2; What is the type of integer literal -1 and 2 and -2 , and how does it get converted to get stored in signed int and unsigned int ? What is meant by signed integer, is that the property of variable or integer literal too? Like -2 is signed integer and 2 is unsigned integer? 回答1: First off, -1 is not an integer constant. It's an expression consisting of a