Sunteți pe pagina 1din 6

WINTER TRAINING REPORT

A report submitted in partial fulfillment of the requirement for


the

Award of degree of

BACHELOR OF TECHNOLOGY

In

Electronics and Communication

Submitted by:

Rishabh Rawat

ROLL NO. – 04215002816

ECE-2 (Morning)

MAHARAJA SURAJMAL INSTITUTE OF TECHNOLOGY, NEW


DELHI-110058

(Affiliated to Guru Gobind Singh Indraprastha University)


Acknowledgement

I am grateful to the authority NIIT Janak Puri for the incredible support and constant positive feedback
which helped me complete my course on C Programming.

I express my indebtedness to all who have directly or indirectly contributed to the successful completion
of my WINTER TRAINING. This includes all of the incredible people at NIIT who made the training
so much learning and enthusiastic experience.
Certificate
Table of Contents

CHAPTER 1: Introduction to C 1

1.1 History 2

1.2 Evolution of C 2

CHAPTER 2: Data Types 3

2.1 Variables 4

2.2 Constant 4

2.3 Storage Classes 4

2.4 Operators in C 5

2.4.1 Arithmetic Opeators 5

2.4.2 Comparator Operators 5

2.4.3 Logical Operators 6

CHAPTER 3: Arrays 7

3.1 How to Declare Arrays 7

3.2 Elements of an Array and How to Access Them 8

3.3 How to Initialize an Array 8

3.4 How to Insert and Print Any Elements 9

3.5 Important Thing to Remember When Working With C Arrays 10

CHAPTER 4: Flow Control 11

4.1 C If Else Statement 11

4.2 Loops 11

4.2.1 For loop 11


4.2.2 While loop 11

4.2.3 Do while loop 12

4.3 Break, Continue Statement 12

4.4 C Switch 12

CHAPTER 5: Functions 14

5.1 Types of functions 14

5.1.1 Standard Library Functions 14

5.1.2 User Defined Functions 15

5.1.2.1 How User Defined Functions work 15

5.1.2.2 Advantages of User Defined Functions 15

CHAPTER 6: Pointers 16

6.1 What are pointers? 16

6.2 Null Pointer 16

6.3 Example code 17

CHAPTER 7: Strings 18

7.1 Example 1 18

7.2 Example 2 19

CHAPTER 8: Structures 21

8.1 Defining a Structure 21

8.2 Accessing Structure Members 22

8.2.1 Pointers to Structures 22

CHAPTER 9: Input and Output 23

9.1 The Standard Files 23


9.2 The scanf() and printf() functions 23

9.3 Example 24

CHAPTER 7: References 25

S-ar putea să vă placă și