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

Programing Approach


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

Constant Variable

C - Escape Sequence

Control Structure - if

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


Character I/O Function

C - Strings

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


Character Input functions

Character input functions

1. getch(): Use to input single character at a time. But it will not display input character. get stands for input, ch stands for character.
Syntax: char a = getch();

2. getche(): It is same as getch() function but it will display input character. get stands for input, ch stands for character, e stands for echo(display)
Syntax: char a = getche();
Both getch() and getche() functions will not required enter key to terminate.

3. getchar(): It will terminate by enter key after inputting a single character.
Syntax: char a = getchar();

Character output functions

1. putch(): It will print a single character
Syntax: putch(a);

2. putchar(): print single character
Syntax: putchar(a);

Question on C Character:

  1. Input Character and display it.
  2. Print ASCII Value of input character.
  3. Print all characters and its ASCII value from 0 to 255.
  4. Find input character is in upper case, lower case or a digit.
  5. Find sum of 2 numbers and repeat the program until user exit.