delphifreepascalturbo-pascal

What is ^I in Borland Pascal?


I don’t know what is ^I and ^G in a Borland Pascal program.

Here:

const TAB = ^I;

and

WriteLn(^G, ' Error : ' , s, ' . ' );

Solution

  • In that context, ^ stands for the Ctrl key on the keyboard. To demonstrate, go to a CMD prompt and press Ctrl and G at the same time.

    The other usage is as indicated in the other answer, i.e. as an indirection operator for pointers.