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

C Tutorial

Programing Approach


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


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


Questions on Arithmetic Operators

  1. Input 2 numbers and find sum.
  2. Input number and calculate its square and cube. (Solution)
  3. WAP to calculate area of rectangle. Area = Length*Breadth.
  4. WAP to calculate area of circle and circumference of a circle. Area of circle = 3.14*r*r, Circumference of circle = 2*3.14*r.
  5. WAP to calculate volume of cylinder. Volume = 3.14*r*r*h.(Solution)
  6. Calculate Simple Interest. Simple Interest = Principal * Rate * Time / 100
  7. Input 5 subjects marks of a student and find total marks and percentage obtained by the student.
  8. Convert temperature from Fahrenheit to Celsius. F = C*9/5+32
  9. Convert temperature from Celsius to Fahrenheit. C = (F-32)*5/9
  10. Input two numbers and swap them.
  11. Input two numbers and swap them without using 3rd variable.
  12. Input distance (in km.) and convert in meters, feet, inches and centimeters.
  13. Input minutes and convert in hours and minutes.