View Single Post
Old 03-26-2004, 08:03 AM   #6 (permalink)
Yakk
Wehret Den Anfängen!
 
Location: Ontario, Canada
Pascal and C have a few cultural differences, and a few philosphical differences. But they are very similar.

First, Pascal tends to use keywords for structure, while C tends to avoid structureal keywords.

Ie, in Pascal, the 'content' of an if statement is between BEGIN and END, while in C it is between a { and a }.

A cultural difference between Pascal and C is how they deal with strings.

Strings in Pascal can be built in, and are often stored as 'length' then a buffer of characters.

Strings in C are a pointer to a buffer. The 'end' of the string is the first character whose binary value is 0.

Turbo (or Think or one of many enhancements) Pascal and C++ are both extensions to the base language. It is quite possible you have only written in an enhanced pascal.

The various enhancements to Pascal, and C++, also have a different set of cultural and philsophical differences.

But, in the end, the differences aren't all that large. You just might have different hoops to jump through along the way. =)
__________________
Last edited by JHVH : 10-29-4004 BC at 09:00 PM. Reason: Time for a rest.
Yakk is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43