Lecture 1 C
Lecture 1 C
PROGRAMMING IN C
Learning objectives - Course
Outcomes
C01 CO3
C02
Analyze of a problem by Demonstrate the data
developing algorithm based Define an algorithm and Types and use them in
on modern programming draw flowcharts for solving simple data processing
techniques Mathematical and applications
Engineering problems
CO4
Understand the computer
programming language
concepts
ECAP172 Programming in C
1. Introduction to C Programming 8. Array Applications
Functions
Dynamic Memory Management
•Library functions Storage Classes Arrays & Pointers
•User Defined Functions & structures and Union
Lecture Plan
12 Live Lectures
06
Weeks
How the classes are ?
Online Classes
Synchronous Asynchronous
Learning Learning
Recorded
Live Lectures
Videos, SLM
Where we can interact ?
1 2
LPU
LPU Live
Discussions
Online Coding Practice
Online and Offline Compilers
Offline Compiler
Turbo C
Dev C++
Borland
Online Compiler
https://www.programiz.com/c-programming/online-compiler/
https://www.jdoodle.com/c-online-compiler/
Learning Outcomes
▪ Translators
words, and
grammar rules
Systems Programming
Artificial intelligence.
Web development.
High-Level Language
C [BASIC, C, SQL, C++]
Machine Language
Mnemonic Description
Assign (copy) source operand to destination
MOV
operand.
ADD Perform addition operation.
Easy to debug
High-level
Easiest to use. Takes less time to develop programs
Language
and, hence ensures better program efficiency.
s
Translator
Executable
Source
Compiler (Machine
Code Code)
Translator
#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}
Object code
▪ Fast Execution
Development Tools (debugging, testing,
maintenance)
Integrated Development Environment(IDE)
Storage Capacities
nibble = 4 bits
Embedded Systems
GUI
Compiler Design
Mobile Apps
Stages in program development
Problem Definition/ identification
Maintenance
Problem Definition/ identification
First step is to define/ identification the problem statement and
boundaries of the problem
Input/output
Processing requirement
Memory requirements
Error handling
Program Design/ Algorithm Development
Algorithm
step by step procedure to solve the problem
Flowchart
Pictorial representation of workflow/ process
Coding
Selection of programming language
Change in specification,
Finiteness
Flowcharts
It is a pictorial representation of a process, system or computer algorithm
Process
Arrows
Decision
Input/ Output
Flowchart example
Start
Enter value
of a and b
C=a+b
Sum is = C
Stop
Programming methodologies
Object-oriented Programming
Functional Programming