Different types of operators

Some of the operators are:
  • Arithmetic operator: The operators which are is used to perform mathematical operations are arithmetic operators.
    • The various arithmetical operators are:
      • + for addition
      • - for subtraction
      • * for multiplication
      • / for division
      • % for modulus (modulo division-returns remainder)
  • Logical operator: The operators which are used perform test on multiple relations is known as logical operators.
    • The logical operators are:
      • && - AND
      • II - OR
      • ! - NOT
  • Relational operator: The operators which are used to compares the values of  two or more quantity are relational operator. They return either TRUE or FALSE in a logical form.
    • The relational operators are:
      • > greater than
      • < less than
      • <= less than or equal to
      • >=greater than or equal to
      • = = equal to
      • ! = not equal to
      • < > not equal to
  • Assignment operator: The operator which is used to assign a constant or variable to a variable is assignment operator.
    • the assignment operator
      • eg: LET a = 5

What is arithmetic operator?

  • Arithmetic Operator: The operators which are is used to perform mathematical operations are arithmetic operators.
    • The various arithmetical operators are:
        • + for addition
        • - for subtraction
        • * for multiplication
        • / for division
        • % for modulus (modulo division-returns remainder)

What is operator? What is operand?

  • Operators are the special types symbols or characters which are used to compute values, and perform different types of operations with operands.
  • Operands are the variables or constant values on which the operation is done.
  • In expression a + b
    • + is operator
    • a and b are operand
    • whole expression is called as the operation.
  •  Some operators are:
    • Arithmetic operator
    • Logical operator
    • Relational operator
    • Assignment operator

What are keywords?

  • Keywords are special words which have meaning and are reserved by the translator of the language. So keywords are also known as reserved words.
  • Some keywords of Qbasic language:
    • CLS
    • REM
    • PRINT
    • LET
    • FOR
    • LEFT$
    • LEN
    • SELECT
    • END, etc
  • Some keywords of C language:
    • char
    • float
    • goto
    • int
    • const
    • void
    • for
    • do
    • auto
    • long
    • return
    • switch
    • struct
    • register, etc

What are the data types used in C language?

  • The basic data types used in C language:
    • char
    • int
    • float
    • double

What are the differences between Qbasic and C ?

Qbasic Programming C Programming
  • Qbasic is used to design application software.
  • C is used to design system software.
  • It supports both sub procedure and function procedure.
  • It supports only function procedure.
  • It has limited data type and around 159 keywords.
  • It has wide range of data types and has 32 keywords only.

What are the features of C language?

  • The features of C language:
    • It is simple and easy to use.
    • It occupies less memory space.
    • More than one programmer can be the part of same program at a time.
    • Programs written in C are fast and efficient.

Why Is C Also Called Middle Level Language?

  • C is also called middle level language because it combines elements of a high level language with some features of of assembler.

Why Is C Called Structured Programming Language?

  • C is called structured programming language as a program in C language can be divided into small logical functional modules or structures with the help of function procedure.
  • To solve a large problem, C programming language divides the problem into smaller modules called functions or procedures each of which handles a particular responsibility, so, it is called structured programming language.