View Single Post
Old 19 August 2015, 21:55   #253
Thorham
Computer Nerd

Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 41
Posts: 3,035
Quote:
Originally Posted by Daedalus View Post
Code:
a$="Hello World!"
is much nicer, and more intuitive than
Code:
#include<string.h>
char a[20];
strcpy(a, "Hello World!");
for example.
You could just write it like this:
Code:
unsigned char a[] = "Hello world!";
Also, having to declare variables is a blessing and something I miss in, for example, Lua, because it helps against bugs.

Old school BASIC belongs in the past
Thorham is offline  
 
Page generated in 0.03979 seconds with 10 queries