Jump to content

Pointers and references: Difference between revisions

Pari/GP -- doesn't really have them
(→‎{{header|C}} and {{header|C++}}: Use "int *pointer" to indicate that the * is part of the initializer, not the type declaration (that is, "int* a, b" won't work as expected).)
(Pari/GP -- doesn't really have them)
Line 1:
[[Category:Less Than 20 Examples]]{{Task|Basic Data Operations}}
{{basic data operation}}{{omit from|MATLAB}}{{omit from|LabVIEW}}
In this task, the goal is to demonstrate common operations on pointers and references.
 
Line 519:
 
(The OCaml web-site provides this [http://caml.inria.fr/resources/doc/guides/pointers.en.html page] on the subject.)
 
=={{header|PARI/GP}}==
GP does not allow user functions with pointers, but some built-in functions like <code>issquare</code> have pointer arguments:
<lang>n=1;
issquare(9,&n);
print(n); \\ prints 3</lang>
 
=={{header|Perl}}==
Line 793 ⟶ 799:
{{omit from|JavaScript}}
{{omit from|Joy}}
{{omit from|LabVIEW}}
{{omit from|LaTeX}}
{{omit from|Make}}
{{omit from|Mathematica|No direct access to pointers in Mathematica}}
{{omit from|MATLAB}}
{{omit from|PlainTeX}}
{{omit from|Ruby}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.