Comprog Reviewer
Comprog Reviewer
EXAM REVIEWER
- C++ was developed as an extension
C PROGRAMMING LANGUAGE of C, and both languages have
almost the same syntax.
C Programming Language
- The main difference between C and
- general-purpose computer
C++ is that C++ support classes and
programming language objects, while C does not.
- created in the 1970s by Dennis
Ritchie and Bell Labs, and remains Get Started with C??
very widely used and influential.
Things needed to start with C:
- By design, C's features cleanly reflect
the capabilities of the targeted CPUs. - Text editor, like Notepad, to type/write
- It has found lasting use in operating C code
systems, device drivers, protocol - A compiler, like GCC, to translate the
stacks, though decreasingly for C code into a language that the
application software, and is common computer will understand
in computer architectures that range
from the largest supercomputers to C Install IDE
the smallest microcontrollers and An IDE (Integrated Development
embedded systems. Environment) is used to edit AND compile
- an imperative procedural language the code.
supporting structured programming,
lexical variable scope, and recursion, Popular IDE's include Code: Blocks, Eclipse,
with a static type system. and Visual Studio. These are all free, and
- designed to be compiled to provide they can be used to both edit and debug C
low-level access to memory and code.
language constructs that map
Note: Web-based IDE's can work as well, but
efficiently to machine instructions, all
functionality is limited.
with minimal runtime support.
C Syntax
Why Learn C?
Line 1:
- one of the most popular programming
language in the world. #include <stdio.h> - a header file library that
- You will have no problem to learn lets us work with input and output functions,
other popular programming such as printf() (used in line 4). Header files
languages such as Java, Python, add functionality to C++ programs.
C++, C#, etc., as the syntax is similar.
- Very fast compared to other Line 2:
programming languages, like Java Blank Line. C ignores white space, but we
and Python. use it to make the code more readable.
- Very versatile; can be used in both
applications and technologies. Line 3:
main() – this is called a function. Any code
inside its curly brackets { } will be executed.
Jobs and Wozniak incorporate Apple and HyperText Markup Language (HTML)
show the Apple II at the first West Coast
the standard markup language for creating
Computer Faire.
web pages and web applications.
1978
1993
Accountants rejoice at the introduction of
The Pentium microprocessor advances
VisiCalc, the first computerized spreadsheet the use of graphics and music on PCs.
program.
1994
1979
PCs become gaming machines as
Word processing becomes a reality as
"Command & Conquer," "Alone in the
MicroPro International releases WordStar.
Dark 2," "Theme Park," "Magic Carpet,"
1981 "Descent" and "Little Big Adventure" are
among the games to hit the market.
The first IBM personal computer, code-
named "Acorn," is introduced.