Videos Related with Structured Programming-C Language

Note on Structured Programming-C Language

  • Note
  • Things to remember
  • Videos
  • Exercise
  • Quiz

C Language

C is a structured programming language developed by Dennis Ritchie at Bell Laboratories in 1972. Since C is a structured programming language, a program in C language can be divided into small logical and functional modules. C++ language is an expanded version of C.

Character set:

The character set consists of alphabet, digit or special symbols used to response information.

Character sets used in C

Alphabet Uppercase ( ie A, B..............Z)

Lowercase ( ie a, b ................z)

Digits 0, 1, 2 ................... 8, 9
Special symbols +, -, *, ( ) , etc.
Characteristics of C Language
  • It is a small programming language that consumes less space.
  • It has enough number of inbuilt functions and operators.

Keyword:

The character set consists of alphabet, digit or special symbols used to response information.
There are 32 characters in C:
Auto, If, While, For, Int, float. etc.

Data type:

Data type refers to the type of data or variable which is to be stored and used in the program.
List of data types

  • Integer (int) = 2 bytes
  • character (char) = 1 byte
  • float (float) = 4 bytes
  • double (long integer) = 8 bytes

Difference between QBASIC and C-Language
Q-BASIC C- Language
It is a high level language without feature of low level language. It is high level language with some features of low level language.
It is mostly used for designing application software. It is mostly used for designing system software.

Operators

Operators are the symbols which are used to compute values and test multiple operations. The data on which the operators are performed are known as operands.

Types of operator

  • Arithmetic operator: The operators which perform mathematical expressions like addition, subtraction, multiplication and division.
  • Relational operator: Relational operators are symbols used to compare two different expressions. The result of the comparison is either True or False.
  • Logical operator: Logical operators performs tests on multiple relation. Example: A < B and A > B
  • Unary operator: C also supports two very important operators called increment and decrement operators.

Loop

A loop causes a section of a program to be repeated a certain number of times. The repetition continues while the condition set for it remains true. When the condition becomes false, the loop ends the control is passed to the statement following the loop.

Variable

Those value which changes during program execution is called variable.Example: A = 5 where A is a variable

Constant

Those values which can't change during the program execution is called constant. Example: A = 10 where 10 is a constant

Rule for naming variables in C
  • Space is not allowed in variable name.
  • Both upper and lower case letters are permitted.

Printf: This statement is used to display the message on the screen.
Scarf: This statement is used to accept a value.

  • C language is a structured programming language developed.
  • Qbasic is a high level language without feature of low level language whereas c language has some features of low level language.
  • The character set consists of alphabet, digit or special symbols used to response information.
  • The character set consists of alphabet, digit or special symbols used to response information.
  • Data type refers to the type of data or variable which is to be stored and used in the program.
  • Operators are the symbols which are used to compute values and test multiple operation
.

Very Short Questions

Structured programming is a programming pattern aimed at improving the clarity, quality, and development time of a computer program by making extensive use of subroutines, block structures and loops.

C language is a structured programming language developed by Dennis Ritchie which has features of both high level language and low level language.

Any two features of C language are as follows:

  • C language can be used for developing application programs and system programs
  • C language has enough number of built in functions and operators.

The basic data types of C language are as follows:

  • Character set
  • Identifiers
  • Keyword

The machine readable code which is obtained after the translation is called object code and the instructions written using C language is called source code.

0%
  • Who developed C language?

    Dennis Gates
    William Ritchie
    Benny Ritchie
    Dennis Ritchie
  • When was C language developed?

    1972 AD
    1981 AD
    1962 AD
    1872 AD
  • A structural programming language developed by Dennis Ritchie at Bell Laboratory in 1972 AD is called:

    D language
    Y language
    G language
    C language
  • Which one is not a type of operator?

    Relational operator
    Unary operator
    Arithmetic operator
    Biological operator
  • How many bytes does float data type consist?

    4 bytes
    8 bytes
    2 bytes
    1 byte
  • Which one of the operator performs tests on multiple relation?

    Logical operator
    Arithmetic operator
    Relational operator
    Unary operator
  • Those value which changes during program execution is called __________.

    constant
    keyword
    loop
    variable
  • You scored /7


    Take test again

DISCUSSIONS ABOUT THIS NOTE

You must login to reply

Forum Time Replies Report
Priyanka Kumari

What is arithmetic and input, output instructions?


You must login to reply

Nk

Difference between C and Qbasic


You must login to reply