Update page 'Future P# Versions'
@@ -24,3 +24,11 @@ A data structure is a group of data elements grouped together under one name. Th
|
|||||||
%>
|
%>
|
||||||
|
|
||||||
Structure members can be access by using a dot operator (.). The arrow operator cannot be used because a structure is not an object.
|
Structure members can be access by using a dot operator (.). The arrow operator cannot be used because a structure is not an object.
|
||||||
|
|
||||||
|
### Exponentiation via **
|
||||||
|
A right associative \** operator can be added to support exponentiation, along with a \**= shorthand assignment operator.
|
||||||
|
|
||||||
|
<%
|
||||||
|
printf("2 ** 3 = %d\n", 2 ** 3); // 8
|
||||||
|
printf("2 ** 3 ** 2 = %d\n", 2 ** 3 ** 2); // 512
|
||||||
|
%>
|
||||||
|
|||||||
Reference in New Issue
Block a user