User: Take the end of the world)
============================================================================================================================================================================================================= Message group: group / alumni () ========================================= ========= Message Type: Chat record ======================================= ==============
Ricky ... "When the priority of the operator on the left and right side of the operation object is the same, the combination of the operator, also known as the combined direction or the interconnection determination of the order?
2 I don't know what books you are watching now, but I think C primer is very good, you can see this book more.
2004-12-18 19:35:06 book is not wrong, but usually a good book is relatively thorough, and there will be a good example
2004-12-18 19:34:34 77) Oh ... It seems that my book is wrong?
2004-12-18 19:37:35 77) Just now, the end of the earth says "combination is to determine who belongs to who is"?
2004-12-18 19:38:17 13) There is only a few operators in the C language to be right, so when the operand is the same as the operator, it is necessary to count the left ... simple Say: and arithmetic is the same
2004-12-18 19:39:01 ricky () A B C, first calculate A B, then the result C, no need to make too complicated, you need to pay attention to the priority
2004-12-18 19:40:48 Walking up the end of the day (with your premise, don't write an unisforced code
2004-12-18 19:40:57 Take the end of the world ([: d]
2004-12-18 19:41:19 ricky (if you can't guarantee your memory is good enough, plus brackets ...
2004-12-18 19:42:33 Walking up the end of the earth (7) Do you want to see what is the book?
2004-12-18 19:42:38 Studying C novice (7) to ~~~~
2004-12-18 19:45:48 Take the end of the end (a = B C D; the actual situation is that the C standard does not make a clear provision for this, and in some platforms or some cases, it may The compiler is like this: A = B (C D);
2004-12-18 19:46:22 Walking the End of the World () A similar example: A = f () g ();
2004-12-18 19:47:07 Walking the End of the End () The compiler does not guarantee that f () must be evaluated before g (). 2004-12-18 19:48:51 Ricky (the first incorrect, the arithmetic operator is combined with the left, so, it must be first b C, then the result D
2004-12-18 19:49:21 Studying C novice () [: l] can be wrong?
2004-12-18 19:49:48 ricky (1) There are many mistakes in Tan Haoqiang.
2004-12-18 19:50:20 Walking the end of the earth () I = 0; While (i <10) arraytarger [i] = arraysource [i ];
It is thinking: while (i <10) {arraytarget [i] = arraysource [i]; i;}
2004-12-18 19:51:39 ricky () actually only a single operator, the conditional operator also has the value of the right combination, and others are all left.
2004-12-18 19:52:32 Walking the endless road () Although I returns from the previous I value, the problem is that the compiler of some platforms does not guarantee the implementation of the address operation before I since I: arraytarger [ i]
2004-12-18 19:53:37 Walking the End of the End () Ricky The example is specially proposed on the book.
2004-12-18 19:53:59 Walking up the end of the world (using the C99 standard
2004-12-18 19:54:06 ricky (1) Oh, if you don't mind, you can see Lippman Essential C
2004-12-18 19:54:43 Take the end of the world () [: '(] No book, still have to find it.
2004-12-18 19:55:20 Studying C newcomers () Your hand has this compilation principle, I have to buy me to buy a book here.
2004-12-18 19:57:05 Walking the End of the End () The last example is 89 years, sorry
2004-12-18 19:58:11 Walking the End of the End (4) This book is biased with C, I don't know if C and C are not
2004-12-18 20:04:19 Walking up the end of the world (why not talk
2004-12-18 20:04:31 Take the end of the earth ([?]
2004-12-18 20:04:46 Learn C novice ([: 8] I don't know how to combine it ... is it a combination of the right direction to the right to the right to the right? A * * P is equivalent to a * (* p) ?????
2004-12-18 20:05:18 Walking the end of the world (etc.
2004-12-18 20:05:47 Ricky (This is not an operator, is a type definition, is another thing .a ** P means P is a pointer, pointing to a pointer to a * type
2004-12-18 20:05:58 Take the end of the world (in fact, I think this book means that the combination and arithmetic order is two yards
2004-12-18 20:06:31 Ricky (the same reason const INT * P, P is a pointer, pointing to const int * const p, p is a constant constant, pointing to int type
2004-12-18 20:06:39 Walking the end of the world (contrary but different
2004-12-18 20:06:58 ricky (int const * p equivalent to const * p)
2004-12-18 20:07:07 Heaven has no snow (haha)
2004-12-18 20:07:15 ricky (in actual programming, more than priority issues
2004-12-18 20:07:20 Heaven has no snow (a ** P cooling
2004-12-18 20:07:35 ricky (avoiding the code that is easy to be misunderstood is good
2004-12-18 20:07:35 Learn C novice ([: 8] uncomfortable
2004-12-18 20:08:23 Walking the end of the world (ricky [:)]
2004-12-18 20:08:42 / kun meteor shower ([?]
2004-12-18 20:08:45 ricky (1 wrong, please correct, :)
2004-12-18 20:08:57 Learn C novice (A ** P means P is a pointer, pointing to a pointer to a * type -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------- INT * P; a * (* p)?
2004-12-18 20:09:50 Heaven has no snow ([Strong] 7 (walking for the end of the way) 20:06:53 This is a combination problem C newcomer) 20:11:09 The big brother re-combined Concept definition? I am dizzy ~~~~~ (Meteren rain) 20:12:11 Listen, good (Ricky) 20: 12: 12Sorry, this is an expression, but there is no doubt, it is obviously A * ( * P), because the priority of the address operator is higher than the arithmetic operator, the example is high (walking for the end of the way) 20:08:41 The example said in the book is the problem of the order in the same situation in the priority machine, of course, At the same time, the order of operation and the combination are closely related to the priority (learn C novice) 20: 14: 39Ricky talk about the combination? The entire concept was subverted (respectively, said next to a dollar and binary) Ricky 20:15:37 Combination is a very simple thing, you think about it too complicated, think about how to calculate the arithmetic Expression. (There is no snow in paradise) 20:18:24 You have encountered: A b * c? (A b) * c is on the mathematics in our primary school, do it, so complicated, some things are follow All of your environment related to (Ricky) 20:19:24 In addition to the single operator, the conditional operator, the other is from left to right. A BC, it is first added, defines int ** p, then ** p = 5; is * (* p) = 5, first take the INT pointer pointing, then take the pointer, because * is Single operator, is the right left (new C newcomer) 20:22:05 The so-called combination should be combined with the operator and the operator? (Ricky) 20:23:42 Here is a "*", do you know that it is a multiplication or take content? To put it in the specific environment, write the code at first, eat, you can't add brackets.