Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pointer Arithmetics

1 view
Skip to first unread message

Amir

unread,
Aug 10, 2008, 11:27:12 AM8/10/08
to
I have an array in the memory and I just know the first element of
this array as a variable and its data type, as mentioned in the help
document I should can use the pointers arithmetic capabilities like
addition and subtraction for accessing other elements of my array but
I can't use these functions. for example in this case:
var
P1,P2: PInteger;
begin
New(P1);
P2:= P1 + 1;
end;

the compiler would say " E2015 Operator not applicable to this operand
type "

What is my problem? Is there any way?

Thanks

0 new messages