?
Solved

Pascal?

Posted on 1997-03-02
4
Medium Priority
?
599 Views
Last Modified: 2010-04-16
What is Pascal, is it a relative to C
0
Comment
Question by:gardanzo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Accepted Solution

by:
Brian122296 earned 20 total points
ID: 1217408
No it is not related.  It is it's own unike language, although i'd recommend you learn something useful, like C, java, or perl.
0
 

Expert Comment

by:wpmaurice
ID: 1217409
Pascal is quite different from C in various ways, like the syntax for loops and so on.
e.g pascal's variable initialization:  x:=0
    C's variable initialization: int x, x=0

However, once you know pascal, it is very easy to learn C. All the things you can do in pascal, you can do it in C. If you are talking about C++, there's only one thing you can do in C++ but not in pascal or C, that is, function overloading. Other programming tasks, such as, creating dynamic link libraries, can be done in either languages.
0
 

Expert Comment

by:gdigior
ID: 1217410
Pascal was created in the early 1970's by a Swedish professor named Niklaus Wirth. His purpose was to create a programming language that could be used to teach "structured" programming concepts to his students.

Despite efforts by Borland Inc., Pascal never took off as a mainstream language and was confined almost entirely to college courses in programming. Pascal has recently been revived in the marketplace in the form of a product called DELPHI which is used for Windows programming and competes against Visual BASIC.

Pascal is not a relative of 'C' although they share some of the same characteristics. Pascal is not as feature rich, flexible, or portable as 'C'. 'C' was created, not as a teaching tool, but as a systems-level programming language. For example, much of the UNIX operating system is written in 'C' with a small amount of assembler and, perhaps now, even some Perl.

'C' is much harder to learn than Pascal initially. But Pascal is excellent for laying a solid base upon which you can build a programming career. I know, I cut my teeth on Pascal. I reccommend Pascal to learn programming and prepare for other languages like C and C++.
0
 

Expert Comment

by:beardless
ID: 1217411
C is more like Pascal than unlike it and both are High Level Languages (HLL) taking source code in the form of simple ASCII text and compiling (translating) to machine code (an executable program file). C was developed for the UNIX Operating System and has proved useful to write other OS's such as MSDOS.  Both started out about the same time and developed from a basic form (eg. ISO Pascal)that had no input or output file-handling routines!  However, Pascal was always meant to be used either for maths or just to teach top-down desined structured programming.  For instance, Pascal allows nested procedure (modules), which C does not. Both allow user defined functions but these are the default in C and vice-versa in Pascal.
Pascal is elegant where C is coarse.  Pascal syntax prevents certain programming errors by employing a pedantic compiler; C allows crass errors but also enables programming "dirty" shortcuts which speeds up programs. C programs may proves unstable compared to Pascal programs before thorough testing. This makes C a more exciting or irritating relative than Pascal to know in the HLL family, depending on your viewpoint.  

Finally, a point to stress is that if you want to get paid to be a programmer, C is the one to learn rather than Pascal.  Unless you learn Borland's Delphi, a visual (windows) language with database-handling facilities, which is based on Borland's Pascal variant.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We are witnesses that everyone is saying that our children shouldn't "play" with a technology because it is dangerous. This article is going to prove that they are wrong.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question