Definition of various pointers and pointer Definitions

Source: Internet
Author: User
Tags integer numbers

Definition of various pointers and pointer Definitions

Click Open link http://www.cnblogs.com/masterhxd/archive/2011/09/12.html

Definition of various pointers:

1. Integer: int;

2. a pointer to the integer number: int *;

3. a pointer pointing to an integer: int **;

4. An array with 10 integer numbers: int a [10];

5. An array with 10 pointers, each pointing to an integer: int * a [10];

6. a pointer to an array with 10 integer numbers: int (* a) [10];

7. a pointer pointing to an array with 10 integer numbers: int (** a) [10];

8. a pointer to an array with 10 integer pointers: int * (* a) [10];

9. a pointer to a function. The function has an integer parameter and returns an integer number: int (* a) (int );

10. An array with 10 pointers pointing to a function. This function has an integer parameter and returns an integer number: int (* a [10]) (int );

11. A function pointer is a function with two Integer Parameters and returns a function pointer. The returned function pointer points to a function with an integer parameter and returns the integer number: int (* a) (int, int) (int );

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.