C programming

Ace your homework & exams now with Quizwiz!

Reasons why C is a widely used programming language

1. Easy to learn 2. Structured language 3. It produces efficient programs 4. It can handle low-level activities 5. It can be compiled on a variety of computer platforms

Classifications of basic data types

1. integer types 2. floating-point types.

Where was the C language first implemented?

DEC PDP-11 computer in 1972

Who created the C programming language?

Dennis M. Ritchie

The type void

It indicates that no value is available.

Keywords

They are reserved words in C.

Whitespaces

Whitespace is the term used in C to describe blanks, tabs, newline characters and comments.

Different data types

1. Basic Types 2. Enumerated types 3. The type void 4. Derived types

Some facts about C

1. C was invented to write an operating system called UNIX. 2. C is a successor of B language which was introduced around the early 1970s. 3. The language was formalized in 1988 by the American National Standard Institute (ANSI). 4. The UNIX OS was totally written in C. 5. Today C is the most widely used and popular System Programming Language. 6. Most of the state-of-the-art software have been implemented using C. 7. Today's most popular Linux OS and RDBMS MySQL have been written in C.

Uses of C

1. Operating Systems 2. Language Compilers 3. Assemblers 4. Text Editors 5. Print Spoolers 6. Network Drivers 7. Modern Programs 8. Databases 9. Language Interpreters 10. Utilities

Derived types

1. Pointer types 2. Array types 3. Structure types 4. Union types 5. Function types.

Tokens

1. keyword 2. identifier 3. constant 4. string literal 5. symbols

Comments

Comments are like helping text in your C program and they are ignored by the compiler. They start with /* and terminate with the characters */. You cannot have comments within comments and they do not occur within a string or character literals.

Identifiers

It is a name used to identify a variable, function, or any other user-defined item. An identifier starts with a letter A to Z, a to z, or an underscore followed by zero or more letters, underscores, and/or digits (0 to 9).

Data types

It refers to an extensive system used for declaring variables or functions of different types. The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted.

Where was the C programming language created?

The Bell Labs

Enumerated types

They are again arithmetic types and they are used to define variables that can only assign certain discrete integer values throughout the program.

Basic Types

They are arithmetic types.


Related study sets

CHAPTER 11 The Gallbladder and the Biliary System

View Set

Humanities 6; Chapter 30: China, The world's most populous country

View Set

VL10 Exploratorische Faktorenanalyse

View Set

Chapter 4: Exploratory and Observational Research Designs and Data Collection

View Set

Chapter 2: Nature of Insurance, Risk, Perils and Hazards

View Set

Price Elasticity of Demand and Price Elasticity of Demand

View Set

Gov/Eco H - Free Enterprise and Other Economic Systems

View Set