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

Command Line Argument

Command Line Argument contains the predefine variables which takes the value from the memory and assign in the variables. These variables are called with main function by passing it as a parameter. These variables are argc and argv. Argc contain number of arguments (input values) and argv contain values.
Syntax: main (int argc, char *argv[])

Benefits of command line argument are that it does not require recompiling the program every time when we run.
Enum: another way for creating symbolic constants is with the help of enum. An enumerated data type provides a way for attaching names to numbers. Enum automatically enumerates a list of words by assigning those values 0,1,2,3 and so on.
Enum height (large, medium, small);
Enum colour ( black, white);