(* (Void (*) ()) 0) ()------What is this?

Source: Internet
Author: User

The first step: void (*) (), you can see that this is a function pointer type. This function has no parameters and no return value.

Step Two: (Void (*) ()) 0, which is to cast 0 to the function pointer type, 0 is an address, that is, a

function has an area with a first address of 0.

Step Three: (* (Void (*) ()) 0), which is the contents of a section of memory that takes 0 addresses, the contents of which are saved

A function within a section of the first address of 0.

Fourth Step: (* (Void (*) ()) 0) (), this is a function call.


(* (Void (*) ()) 0) ()------What is this?

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.