You are on page 1of 23

Welcome to Technical Training

for Placement Preparation


Masterclass
by
About C Programming?

Simple & Libraries


Efficient

Speed Popular

Structured Dynamic
Language

Case Sensitive
Portability

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Why to learn C Programming?

• Type of Job Profiles


• Future
• Salary
• Demand in market

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Writing, Executing and Fixing Code in C

IDE : Integrated Development Environment


• Visual Studio Code
• Dev C/C++
• Code::Blocks
• Eclipse
• Netbeans
• Atom
• Sublime Text
• CodeLite
• CodeWarrior and many more…

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Skills you will gain…

• Algorithms
• Programming Language
• Concepts
• Problem Solving

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Tips for learning CODING with no prior experience

1. Learn the basic concepts of coding first.


2. Choose the right language.
3. Learn by hands-on coding, not just reading.
4. Don’t ignore the fundamentals. ADVANCED
5. Try writing code on paper.

INTERMEDIATE

BASIC LEVEL

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
What is CODING?

❑ Software Programming is also called CODING.


❑ CREATIVITY!!!

❑ Coding is a skill where you take instructions (steps) and translate it into a language that computer

understands since computers do not communicate like humans.

❑ They communicate in a language called BINARY and it uses 0’s and 1’s.

❑ Coders write the instructions using programming language.

❑ Programming language translates human code into machine code known as software.

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Why CODING is important?

✓ Coding skills are good for your career prospects.


✓ The range of coding jobs is growing.

✓ More job roles now require coding skills.

✓ Coding skills attract higher wages.

✓ Learning coding skills is good for your brain.

✓ A career that will grow with your skills.

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
C C Programming
Part 1 Strings
[20 Hrs.]
C Programming
Arrays

C Functions

C Flow Control

C Introduction

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Competitive
Part 2 Programming

Additional
Concepts

C Programming
Files

Structure & Union

C Programming
Pointers

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Prerequisite
• Computer System

• Hardware

• Software

• System Software

• Application Software

• High level Language

• Machine Level Language

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Programming
Languages

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
C Program
Structure

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
C Introduction

• C is powerful general-purpose programming language.

• It can be used to develop software like OS, Databases, Compilers

and so on.

• C programming is excellent language to learn to program for

beginners.

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
C Keywords & • Character Set
Identifiers
• Alphabets

• Digits

• Special Characters

• White Space Characters

• C Keywords : Keywords are predefined, reserved words used in programming that

have special meanings to the Compiler. Keywords are part of syntax and they cannot

be used as Identifiers. E.g. int student;

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
C Identifiers • Identifiers refers to name given to entities such as variables, functions, structures, etc.

• Identifiers must be unique.

• Example: int student;

• Identifiers names must be different from Keywords. You cannot use..

• Example: int int;

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
C Identifiers • Rules for naming Identifiers:

1. A valid identifier can have letters, digits, and underscores.

2. The first letter of an identifier should be either a letter or an underscore.

3. You cannot use Keywords as Identifiers.

4. There is no rule on how long an identifier can be. Some compilers may create

problem if Identifier is more than 31 characters.

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
C Variables • A variable is a container (storage area) to hold data.

• Example: int marks = 65;

• The value of variable can be changed.

• Rules for naming variables:

1. A variable name can only have letters, digits and underscore.

2. The first letter of a variable should be either a letter or an underscore.

3. There is no rule on how long a variable name can be.

• C is strongly typed language. Variable type cannot be changed once it is declared.

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
C Literals • Literals are data used for representing fixed values.

1. Integers: It is numeric literal without any fractional or exponential part.

a) Decimal (base 10)

b) Octal (base 8)

c) Hexadecimal (base 16)

2. Floating – point literals: It has fractional form or exponential form.

3. Characters: It is created by enclosing single character inside single quotation marks.

4. Escape Sequences: It cannot be typed but has special meaning.

5. String Literals: sequence of characters enclosed in double-quote marks

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
C Escape Escape Sequences Character
Sequences \b Backspace
\f Form feed
\n Newline
\r Return
\t Horizontal tab
\v Vertical tab
\\ Backslash
\' Single quotation mark
\" Double quotation mark
\? Question mark
\0 Null character
This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
C Constants • Variable whose value cannot be changed, then we can use const Keyword. This will

create constant.

• Example: const double PI = 3.14;

• You can also define a constant using the #define preprocessor directive.

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
C Data Types • Data types are declarations for variables.

• Example: int rollno;

• The size of int is 4 bytes.

• Basic Types: (refer image in next slide)

This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video
Type Size (bytes) Format Specifier
int at least 2, usually 4 %d, %i
C Data Types
char 1 %c
float 4 %f
double 8 %lf
short int 2 usually %hd
unsigned int at least 2, usually 4 %u
long int at least 4, usually 8 %ld, %li
long long int at least 8 %lld, %lli
unsigned long int at least 4 %lu
unsigned long long int at least 8 %llu
signed char 1 %c
unsigned char 1 %c
at least 10, usually 12 or
long double %Lf
16
This video is sole property of Talent Battle Pvt. Ltd. Strict penal action will be taken against unauthorized piracy of this video

You might also like