@,^,#,$ Special symbolic meanings in Delphi

Source: Internet
Author: User
Overview: ^: pointer @: FETCH #: Decimal symbol $: Hex symbol @: fetch operator; var Int:integer;  P:^integer;begin new (P);  int:=24;  P:[email protected]; Dispose (P); end;  ^: Reference parsing operator for pointers; var pint:^integer;begin new (pint);  ShowMessage (Inttohex (Integer (@pint), 8));  Pint^:= $ff; ShowMessage (Inttohex (pint^,4)); end; #:ascii code value notation, const tab_key= #9; The ASCII value symbol for the//tab key ^ has two uses, when it appears before the type identifier, such as ^typename, that represents a type that represents a pointer to a TYPENAME type variable  When it appears after a pointer variable, such as pointer^, the symbol de-references the pointer, that is, the value pointer that is stored in the memory address (the address is held in the pointer), pointing to the data. Var I:integer; PI: ^integer;  Begin I: = ten PI: = @i;;  pi^: = 20; I: = Pi^;end; The method of taking pointers, such as y:=p^, means the pointer p for the Y assignment

@,^,#,$ Special symbolic meanings in Delphi

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.