Home > Back-end >  A small problem about C language
A small problem about C language

Time:04-15



Want excuse me, how to explain this kind of situation, a little can't understand,
(especially the definition about the data type and output type (in the long long, long, and int) is not consistent, which is legal, what is illegal?)

CodePudding user response:

What it's like someone asks you to keep GangJing grasp,

CodePudding user response:

Computer memory or file content or transport it is just a one-dimensional binary byte array and its corresponding binary address;
The human brain to a computer memory or file contents or transfer the content of the one-dimensional binary byte array and its corresponding binary address some parts as an integer, number of signed/unsigned number, floating point Numbers, complex Numbers, letters, digits, Chinese/Korean/French... Character/string, assembly instructions, functions, function parameters, heap, stack, arrays, Pointers, array pointer and pointer array, the array of arrays, pointer to pointer, two-dimensional arrays, character lattice, the coordinates of character strokes, black and white binary images and grayscale images, color images, audio, video, fingerprint information, id information...

CodePudding user response:

Have you already know how to match the format identifier and the data type, just for another mistake did not notice the,
That's what you used to initialize the data constants is too big, in the short data type to overflow,

You can't because you 42 foot wear not into 40 said the family of the Nike shoes is bad, the somebody else is because the other reason is bad,

CodePudding user response:

Write their own code validation data materials, this approach is worth encouraging,
But when must pay attention to methods, aiming at the problem itself to verify, in an unguarded moment, not to introduce additional questions, that will make the results lack of convincing,

CodePudding user response:

Please refer to the c + + "printf () function USES 3"
Wish I could help you!

CodePudding user response:

reference forever74 reply: 3/f
the original poster you already know how to match the format character and data type, just for another mistake didn't notice,
That's what you used to initialize the data constants is too big, in the short data type to overflow,

You can't because you 42 foot wear not into 40 said the family of the Nike shoes is bad, the somebody else is because the other reason is bad,


reference 4 floor forever74 response:
write their own code validation data materials, this approach is worth encouraging,
But when must pay attention to methods, aiming at the problem itself to verify, in an unguarded moment, not to introduce additional questions, that will make the result unconvincing,


Understand, in fact, I also know that, in accordance with the rules to do to have the result, but I more is to want to explore the reasons, may be a little perseverance,

CodePudding user response:

It seems you are aware of, excessive depth is not suitable, for curiosity like you too strong to the end, I generally expressed like this:
Know that drug use is harmful, it is good to stay away from drugs, don't have to experience how harmful?
  • Related