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.
|