[Coco] C VS Basic Coco

phil pt ptaylor2446 at gmail.com
Tue Feb 13 20:17:35 EST 2018


I was saying  in C you have to use some extra chars line printf ("value of
a: %d\n", a);  vs basic it's much easer because you would use print "value
of a ";a. For some folkes learning basic code is less complex.

On Tue, Feb 13, 2018 at 8:12 PM, Mark McDougall <msmcdoug at iinet.net.au>
wrote:

> On 14/02/2018 3:08 AM, Taylor, Phillip L CIV wrote:
>
> I the reason I like basic is because it's much easer to learn and read the
>> source code.  The example below 8 lines of basic code 6 lines of code vs C
>> is 8 lines of code.
>>
>
> Aside from missing the assignment of A=10 in the basic listing you're
> taking a bit of poetic licence in describing that as 8 lines of C code;
> you've also included the C program overhead to compare against a BASIC code
> snippet... plus (IIUC) technically they generate different output so...
> apples and oranges.
>
> FTR I'd call that 2 lines of C myself...
>
> for (int a=10; a<20; a++)
>   printf ("value of a: %d\n", a);
>
> Regards,
>
> --
> Mark McDougall
> <http://retroports.blogspot.com.au>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list