(a)
main()
print("Hello world^n");
(b)
new myvar;
(c)
new counter = 0;
(d)
new prompt[] = !"Press any key...";
Example 4: (a) Function with a single statement; (b) declaring a variable; (c) variables may be initialized upon creation; (d) array that holds a packed string.
Back to Article
Copyright © 1999, Dr. Dobb's Journal