Int a [5] = {1, 2, 3, 4, 5}; printf ("% d \ n", * (int *) (& a + 1)-2 );, printf % d
What is the result of a certain convincing pen question in a certain year? The answer is 4. Why?
My understanding (do not know if it is correct ):
& A is an
I believe many cppers, like me, have been hovering in pointers and references for a long time. We often mix pointers and references, especially when we see the usage listed in the question, which really hurt our brains.
Later, I used it in the
Summing up, int (m) Zerofill, plus Zerofill after M to show a little bit of effect, such as int (3) Zerofill, you inserted into the database is 10, then the actual insert is 010, that is, add a 0 in front. if int (3) and int (10) Without Zerofill,
Int main ()
{
Int * A [5];
INT (* B) [5];
Int I = 2, j = 3, K = 4;
B =;
A [0] = & I;
Printf ("% d/N", * a, * a [0], I );
Printf ("% d/N", a, a [0], & I );
Printf ("% d", B );
B ++;
Printf ("% d/N", B );
Getchar ();
}
[] The priority
The difference between a MySQL int (3) and an int (11)
Summing up, int (m) Zerofill, plus zerofill after M to show a little bit of effect, such as int (3) Zerofill, you insert into the database is 10, then the actual insertion of 010, that is, add
Summing up, int (m) Zerofill, plus Zerofill after M to show a little bit of effect, such as int (3) Zerofill, you inserted into the database is 10, then the actual insert is 010, that is, add a 0 in front. if int (3) and int (10) Without Zerofill,
Mysql int (3) and int (11) Differences, mysqlint
Difference between mysql int (3) and int (11)
In summary, int (M) zerofill, followed by zerofill, then M shows a little effect. For example, if int (3) zerofill is inserted into the database as 10, it
Difference between mysql int (3) and int (11), mysqlint
In summary, int (M) zerofill, followed by zerofill, then M shows a little effect. For example, if int (3) zerofill is inserted into the database as 10, it is actually inserted as 010, that is,
1 start with const int IYou know, when declaring a variable, int I is like this; this I may be re-assigned to it. As follows:Int I = 0;//...I = 20; // The value is assigned again here.However, one day my program may need such a variable (temporarily
Preface
As for pointers, we first need to figure out four points: the pointer type, the pointer to the type, the value of the pointer, and the value the pointer points to. If this is not very clear, please refer to here
URL:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.