This repository contains the programs in C illustrated during the sessions.
- Hello world program which gets completely modified to understand range of values int can store.
- Variable declaration to understand how to declare variables.
- Addition of two numbers to take two numbers as input and add them!
- int, char, float, double: Basic Data Types
- Question on float type: question1
- long and long long: long
Simple program using if: if
Program to print grade given marks
Program to print day of week given day number
- Example program to understand break
- Example program to understand continue
- Example program to understand goto
-
The first function doesn't work. We try to understand why that doesn't work. An introduction to pointers and memory is provided. Referencing and Dereferencing operators are discussed.
- Character array vs String in C
- Understanding various declarations
- Pointer arithmetic
- Array value rule
- Count no. of words in a line
- Call by value
- Simulated Call by reference
- Fibonacci Function
- Max of three numbers function
- Recursive functions