• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

array designation

Started by James C. Fuller, May 08, 2018, 01:14:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

James C. Fuller

Charles,
  Any significant reason for both [] and () use with arrays other than to confuse old farts like me :)

James

Charles Pegge

Hi James,

Either will do.

The only place you must use square brackets is in C-style array declaration:

int a[100]

This is because o2 also supports C-style procedure declarations:

int f(..)