ankitweblogic logo
W e b t u t o r i a l s

C Tutorial

Programing Approach

Algorithm

Flow Chart

Define C

Define Programming

C - Syntax

Compiler vs Interpreter

C - Variables

C - Keywords

C - Data Types

C - Comments

Turbo C - Shortcut keys

C - Operators

Hierarchy of Operators

Ex: Arithmetic Operator

C - Formatting Output

Constant Variable

C - Escape Sequence

C - if , switch

Ex: If condition

Ex: Inc / Dec Operator

C - loops

Ex: Loops

C - Nesting Of loops

Ex: Nested Loops

Jumping Statements

C - Arrays 1D

C - Arrays 2D

C - Sorting

ASCII Value

Character I/O Function

C - String Functions

Ex: Strings

Array of Strings

C - Math Functions

User-defined Function

Exercise Function

C - Types of Functions

Storage Class

C - Header Files

C - Preprocessor

C - Pointers

C - Structures

C - Typedef

C - File Handling

Ex: File Handling

Command Line Argument

MCQ

Programming Approach

Programming Paradigm

The systematic and organized principle of writing a program is called as programming paradigm. It contains Procedural programming approach, Structural programming approach and Modular programming approach.

Procedural Programming Approach

In Procedural Programming, the problem is viewed in a sequence manner. It follows the concept of top-down approach. A top-down approach starts from the main module and then their subroutines and so on.

Advantages of Procedural Programming:

  1. Easy to trace the bugs.
  2. Easy to traversal the program.

Disadvantages of Procedural Programming:

  1. In large program it is very difficult to identify what data is used by which function.
  2. It does not allow reusability of code.

Structural Approach

Structural Approach refers to the process in which we break the overall job into separate pieces of modules. It is necessary to reduce the complexity of the program.

Advantages of Structural Approach:

  1. Modification or enhancement in programs becomes easier.
  2. Reduce debugging time.
  3. Allows several programmers to code simultaneously.

Modular Approach

A module is a logical part of a program. It is a set of related procedures with the data they manipulate is called a module. It module may be a macro, a function, a procedure, a process or a package.

Advantages of Modular Approach:

  1. Tracing of error is easier.
  2. Modules can be kept separately in a library and used anywhere in the program without re-writing them.
  3. A module can use other modules.
  4. It saves development time as we can reuse the code again and again.

Bottom-up Approach

Bottom up approach starts from the bottom level of operation and then a higher level until the stage is reached.

Advantages of Bottom-up Approach:

  1. It can handle the increasing complexity of program that are reliable and maintainable.
  2. It enables programmers to write complex programs easily.
  3. It is useful when designing the complex systems like operating system, networking software system etc.
Updated: 14-Feb-19