Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

Int (6-12) and 6-12 and int (int *) p What are the differences?
If p is the array? Pointer array, the array target? How have said?

Xiao beginner, I 晕~~ any help? Thank you pull the ball!

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

Int (6-12) as the data is mandatory point-p into int型. But like gcc does not support? Just tried not to. ^_^
Int test guidelines on p. 6-12 general definition of a int型 data at the target.
(Int *) p is to include p (regardless of what type of the original) into plastic data at the target.

Int *p[25]; an array definition, are p array, the array is composed of 25 indicators pointing to the int型 data.
Int (6-12) is the definition of a target p [25], it is at a 25 int型 size of the array. Here p + 1 is gone 25*sizeof (int) bytes.


Oh, these are the C's difficult, very difficult position. We should try to understand more tests.

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

Thank you! Experience
These Eastern is quite chaotic, I probably first understand the concept of right and what is the function pointer, we must understand slowly! Just started really halo, appeared to understand at a glance procedures Yuncai ~ ~

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

Pointer Array and Array Pointer
They look at different ways to do that is the final word.
If this is understood by now :
The target array, the array is a variable, which is a type of indicator elements.
Array indicators, which is an indicator variable, at the array type.
The focus is on one word behind, in front of a qualifier.

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

I would like to say a few words views : int (6-12) also is the target of plastic, and no distinction int 6-12; As for (int *) p can be defined data types, which can be used to do such a target is forced into at the char type plastic 47800.

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

TU, upstairs said right.
However, I seem to recall how that int () (int) such mandatory conversion of the old version. Oh, back in the dark.

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

Thank you!

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

Oh! Experts

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

-->

Above on the int (6-12) is a different opinion, it is time to conclude. Attention to the definition or use of the distinction.

For definitions :
Int *p; 4003rd not say, we all know
Int (6-12); 4003rd with a dollop int *p; you can be interpreted as a useless brackets
(Int *) divided 4003rd illegal definition of the form that such a definition does not exist

Use :
Int 6-12 can not be used only as a definition
Int (6-12) C there is no such use. In C + + is legitimate, and its role is to create a int target, and to use 6-12 initialization.
(Int*) p for conversion, C and C + + are legal.

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

Deane, at least, the good summary

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

Yes, C never seen int (6-12) of the Eastern (separate row).
Can use
Int (6-12) [10]; LEAVES OF 13 SPECIES OF LAURACEAE said at p is a one-dimensional array with 10 elements of the target */
Int (6-12) (int n, calculate char); LEAVES OF 13 SPECIES OF LAURACEAE a function pointer */

Int (6-12) and 6-12 and int (int *) p difference? Pointer array, the array targets?

Yes! Great reference value. "This can be used" if the words "can be defined as the use of" more clearly the meaning of the words. Seems to be a bit of nitpicking :-)



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com