- 2067 Asar · 1+3+4 marks
High level languages; C versus FORTRAN
Short answer
High-level languages use English-like statements and are machine-independent. Types include procedural (C, FORTRAN), object-oriented (C++), functional, logic, and scripting. C is general-purpose, free-format, case-sensitive with zero-based arrays and pointers, while FORTRAN is for scientific computing, case-insensitive with one-based arrays and strong array support.
What is high level language? What are the different types of high level languages? How does computer programming language C differ from FORTRAN?
High-level language
A high-level language is a programming language with English-like statements and mathematical notation, independent of the computer hardware. A compiler or interpreter translates it into machine code.
Types of high-level languages
- Procedural (structured) languages: programs are sequences of procedures; C, FORTRAN, Pascal, COBOL.
- Object-oriented languages: programs built from objects and classes; C++, Java, C#.
- Functional languages: programs built from functions; LISP, Haskell.
- Logic languages: based on facts and rules; Prolog.
- Scripting languages: interpreted, used for web and automation; Python, JavaScript, PHP.
C versus FORTRAN
| C | FORTRAN |
|---|---|
| General purpose, used for system and application software | Designed for scientific and numerical computation |
Structured; free-format code, statements end with ; | Older versions use fixed columns, no ; |
| Supports pointers, structures, dynamic memory | Pointers and structures are limited in old versions |
| Case sensitive | Not case sensitive |
Block structure with { } | Blocks end with END, ENDIF, CONTINUE |
| Array index starts from 0 | Array index starts from 1 |
| Powerful low-level access to memory | Strong built-in support for arrays and complex numbers |
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- High level languages and natural language · Computer Programming, chapter 1
- High level vs low level languages · Computer Programming, chapter 1 · asked 2×
- Categories of programming languages · Computer Programming, chapter 1
- Generations of programming languages · Computer Programming, chapter 1 · asked 4×
- Define programming language · Computer Programming, chapter 1 · asked 3×
- Computer program and programming · Computer Programming, chapter 2
- Higher-level language versus OO approach · Multimedia System, chapter 7