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

Programing Approach

Algorithm, Flow Chart

Define C

Define Programming

C - Syntax

C - Variables

C - Keywords

C - Data Types

C - Comments

Turbo C - Shortcut keys

C - Operators

Hierarchy of Operators

Ex: Arithmetic Operator

Control Structure

Control Structure - if

Ex: If condition

Ex: Inc / Dec Operator

C - loops

Ex: Loops

C - Nesting Of loops

Ex: Nested Loops

Constant Variable

C - Escape Sequence

C - Arrays 1D, 2D

C - Sorting


Character I/O Function

C - Strings

Ex: Strings

Array of Strings

C - Math Functions

C - Functions

C - Types of Functions

Storage Class

C - Header Files

C - Preprocessor

C - Pointers

C - Structures

Typedef File Handling

Command Line Argument


C Syntax

Syntax defines the set of rules for writing programs. Every language specification defines its own syntax.

A program in C-Language can be composed of:

  • Variables − Represents a named in memory block that can store values for the program.
  • Literals − Represents constant/fixed values.
  • Operators − Symbols that define how the operands will be processed.
  • Keywords − Words that have a special meaning in the context of a language.

First C Program

void main()
    printf("This is my first C Program"); /*to print the statement*/

Code Explanation

  • stdio - Standard input output
  • .h - header file
  • conio - Console input output
  • main is a function from where a program start its execution.
  • { } - curly brackets define the scope of the program
  • printf() is a function which is use to print the string
  • scanf() function is use to receive the values from user
  • & means address of a variable