Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
5 views48 pages

C For Beginners

This document serves as an introductory guide to the C programming language, covering fundamental concepts such as variables, data types, operators, control statements, and input/output functions. It outlines the structure of a C program and provides examples of syntax and usage. The content is intended for personal use and is protected against unauthorized distribution.

Uploaded by

v10095036
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views48 pages

C For Beginners

This document serves as an introductory guide to the C programming language, covering fundamental concepts such as variables, data types, operators, control statements, and input/output functions. It outlines the structure of a C program and provides examples of syntax and usage. The content is intended for personal use and is protected against unauthorized distribution.

Uploaded by

v10095036
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 48

sb65723649i@gmail.

com
ZWM4E6SAYB C for Beginners

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Agenda

• Introduction to C
• Variables in C
• Datatypes in C
• Input / Output in C

ZWM4E6SAYB Operators in C
[email protected]

• C Control Statements
• Arrays in C
• Functions in C
• Strings in C
• Structures and Union
• Pointers in C DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
[email protected]
ZWM4E6SAYB Introduction to C

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Introduction to C

• C was first introduced by Dennis Ritchie.


• C is a procedure-oriented language.
• C is a widely used and popular programming language for developing system application software.
• It can be called as a mid-level programming language.
[email protected]
ZWM4E6SAYB

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Introduction to C

Features:

Some of the features of C Programming are:-


• Easy to learn
• Structured Programming language
• Machine Independent or Portable
[email protected]
ZWM4E6SAYB

• Powerful
• Used in low- level as well as high level applications

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Basic block of a C Program

Preproccesor directives

Global declarations;

void main()
[email protected]
{
ZWM4E6SAYB

local declarations;
statement 1;
statement 2;
:
statement n;
}
DO NOT WRITE ANYTHING
User defined functions HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Comments

/* This is my First C Program


Author name: */

# include<stdio.h>
#include<conio.h>
[email protected]
ZWM4E6SAYB void main()
{

printf(“C Programming”); // Single line Comment

getch();

} DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
C Tokens

C tokens are smallest individual units in a program.

● Identifiers- user defined names/abbreviations

● Keywords - words which are specific to C language


[email protected]
ZWM4E6SAYB
● Constants - values which don't change

● Strings - sequence of characters

● Operators - act on operands and generates output

● Special Symbols - used for preprocessor directives (#)


DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
[email protected]
ZWM4E6SAYB Variables in C

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Variables in C

What is a Variable?

• It’s a name given to a memory location where the value is not fixed, it can change with the course of
time. Ex : int num;
[email protected]
ZWM4E6SAYB
Syntax:
datatype variable_name;

Assignment:

variable_name = value

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Variables in C

Scope of a Variable

• Scope generally speaks about the visibility of variables.


- local variable and global variable
[email protected]
ZWM4E6SAYB

Local Global

void main () int y = 50;


{
void main ()
int rollno = 10; {
int x = 100;
} }

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
[email protected]
ZWM4E6SAYB Data Types in C

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Data Types in C

Data Types

Primitive Data type Derived Data type User Defined type

[email protected]
ZWM4E6SAYB

Boolean Array Structure


Character Pointer Union
Integer References Enum
Float
Double
Void

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Data Types in C

Typecasting
• C allows for conversions between the basic data types
- Implicit and Explicit

[email protected]
ZWM4E6SAYB

float a = 5.25;
int num = 5 + 13.75; // num = 18
int b = (int) a; // b = 5

Implicit conversion Explicit conversion

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
[email protected]
ZWM4E6SAYB Input / Output in C

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Input / Output in C

Input and Output functions in C are:-

• printf() and scanf()

• gets() and puts()


[email protected]


ZWM4E6SAYB
getchar() and putchar()

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Input / Output in C

Format Specifiers:-

The format specifiers will inform the scanf() function, what kind of input is being fed through input
device. It also tells printf() function what type of data has to be printed on the output device.

• %d – Integer
[email protected]
ZWM4E6SAYB

• %c – Character

• %s – String

• %f - Float

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
[email protected]
ZWM4E6SAYB Operators in C

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Operators in C

• C primarily supports 5 types of operators

Arithmetic Relational Bitwise


[email protected]
ZWM4E6SAYB

Logical Assignment

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Operators in C

Arithmetic Operators:-

• Used for mathematical operations


• We have unary and binary operators
• Unary – ( ++, --)
• Binary – (+ , - , *, /, %)
[email protected]
ZWM4E6SAYB

Relational Operators:-

• Used to compare the values of two operands


• Some of them are ( < , <= , >=, ==)
• We can also check for equality of operands, whether an operand is greater or smaller than the
other.
DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Operators in C

Logical Operators:

• To combine one or multiple conditions we can use Logical operators.


• Logical operators always give us a Boolean value, i.e. true or false
• Some of them are ( && - AND, || - OR, ! – NOT)
[email protected]
ZWM4E6SAYB

Bitwise Operators:-

• We can perform bit-level operations on the operands.


• Some of them are ( & - bitwise AND, |- bitwise OR)
• It converts them to bit-level first and then performs the operations.

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Operators in C

Assignment Operator:-

• It is used to assign a value to a given variable.


• The value on the right side of the assignment operator is assigned to operand at left side.
• We also have some short hand assignment operators ( +=, -=, /=).
[email protected]
ZWM4E6SAYB

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
[email protected]
ZWM4E6SAYB C Control Statements

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
C Control Statements

Conditional Statements:-

• Also known as selection statements.

• Based on the conditions specified we can make some decisions.


[email protected]


ZWM4E6SAYB
Anytime we execute conditional statements we get a Boolean value in return.

• If the condition executed returns a true value, a set of statements are executed else another set of
statements are executed.

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
C Control Statements

The if statement:-

• Selection and execution of statements based on a given condition is done by the if statement.

Syntax:
[email protected]
ZWM4E6SAYB
if (condition)
{
statement 1;
statement 2;
}

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
C Control Statements

The if-else statement:-

• Depending on the result of the condition, the if - else statement executes one of the two potential
statements.

Syntax:
[email protected]
ZWM4E6SAYB

if (condition)
{
statement 1; // if block
statement 2;
}
else
{ DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
statement 3: // else block WEBCAM
} This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
C Control Statements

The Nested if-else statement:-

• A nested if-else contains one or more if-else statements.

if (condition1)
[email protected]{
ZWM4E6SAYB
statement 1;
if(condition2)
statement 2;
else
statement 3;
}
else
{ DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
statement 3: WEBCAM
} This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
C Control Statements

Loops:-

• Loops are used to re-execute a part of a code a given number of times, depending upon the
condition specified.

Entry controlled:-
[email protected]
ZWM4E6SAYB

• The condition is checked each-time before entering the loop. If the condition is satisfied then only
the loop body gets executed. The loop body does not get executed if the condition is false in the
first iteration.

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
C Control Statements

Entry controlled loops are:-

1) For loop
Syntax:
for(i=0 ;i<n; i++){
[email protected]
ZWM4E6SAYB
//do something
}

2) While Loop
Syntax:
while(condition is True){
//do something
}
DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
C Control Statements

Switch case:-

● The switch statement works as a multiway branch statement.

● It’s a modified form of if-else.


[email protected]
ZWM4E6SAYB
● It’s a common alternative to the if statement when you want to get multiple results.

● Default condition gets executed when no conditions are met.

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
C Control Statements

Switch case:-

#include<stdio.h>
#include<conio.h>

[email protected]
ZWM4E6SAYB
void main() {
int n= 1;

switch (n)
{
case 1: Statement 1;
break;
case 2: Statement 2;
break;
default: Statement; DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
} WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
[email protected]
ZWM4E6SAYB Arrays in C

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Arrays in C

● An array is a collection of elements where the data types of all the elements are same.

● An array stores all the elements in contiguous memory locations.

● Every element in an array has a specified index.


[email protected]
● Size of an array in C is fixed at the time of definition
ZWM4E6SAYB

We have two types in Arrays:


1 x 3 Array
Single dimensional
2 x 3 Array
Multi-dimensional
DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Arrays in C

Definition:

An array can be defined in the following manner in C:

Data_type name_of_array>[<size_of_array>]
[email protected]
ZWM4E6SAYB
Note: Size of an array should always be an integer it cannot be a real value.

Example:

int a[10]; //single dimensional array


float b[3][3]; //float - dimensional array
DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Arrays in C

Array initialization:

1) Static Initialization

int a[10]={0,1,2,3,4,5,6}
[email protected]
ZWM4E6SAYB
char c[5]={‘h’,’e’,’l’,’l’,’o’}

2) Dynamic Initialization

int a[10]; //array is created with garbage value


for (int i=0 ;i<10; i++)
scanf(“%d”,&a[i]); DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
[email protected]
ZWM4E6SAYB Functions in C

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Functions in C

● Functions are blocks of code which are used to perform specific tasks .

● In C a function needs to be declared before it’s used.

● Functions have a function definition , function body and a return type.


[email protected]
● Functions with return type except void needs to return a value at the end.
ZWM4E6SAYB

● Functions with return type void do not return any value.

● A recursive function can call itself during the course of execution of a program.

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Functions in C

A Function example:

int sum (int a, int b)


{
return a+b;
[email protected] }
ZWM4E6SAYB

void main()
{
printf(“ %d”, sum(5,10));
}

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
[email protected]
ZWM4E6SAYB Strings in C

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Strings in C

● Strings are used to store sequence of characters as information.

● string.h header file provides some built-in string manipulation functions.

[email protected]
Strings can be initialized in following ways:-
ZWM4E6SAYB

char a[5] = {‘H’,’o’,’l’,’a’};

char a [ ] = “Hola”;

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Strings in C

String functions are accessible by importing <string.h>.

● strlen() Find length of string

● strcpy() Copy one string to other


[email protected]
● strcat() Join two strings
ZWM4E6SAYB

● strcmp() Compare two strings

● strlwr() Converts string to lowercase

● strupr() Converts string to uppercase


DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
[email protected]
ZWM4E6SAYB Structures and Union

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Structures and Union

● Structures provides a way for us to create our own data type called “ user-defined data type”

● Assume that we have to store the details of a student, so we can use structure to store it as below:

[email protected]
struct student student
ZWM4E6SAYB
{ name Structure
char name[10]; rollno allocates space
int rollno; for each variable
cgpa
float cgpa; separately
};

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Structures and Union

● Union also provides a way for us to create our own data type called “ user-defined data type”.

● Here each variable shares the memory collectively.

[email protected]
union student student
ZWM4E6SAYB
{ name Union shares the
char name[10]; rollno Memory memory
int rollno; allocated for
cgpa
float cgpa; variables
};

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
[email protected]
ZWM4E6SAYB Pointers in C

This file is meant for personal use by [email protected] only.


Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Pointers in C

● Pointers are variables which store the address of a variable.

● They have data type just like variables, for example an integer type pointer can hold the address of
an integer variable and an character type pointer can hold the address of char variable.

Example:
[email protected]
ZWM4E6SAYB
int a =20;
int *p=&a; 1001 2063

20 1001

a *p
DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Pointers in C

Example of Pointer:
#include <stdio.h>
void main ()
{

[email protected]
int y = 5;
ZWM4E6SAYB
int *p;
p = &y;
printf("Address of y : %x\n", &y );
printf("Content of p: %x\n", p );
printf("Content of *p: %d\n", *p );

}
DO NOT WRITE ANYTHING
HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited
Summary

• We saw an introduction to C, features available in C and tokens available in C.


• Then, we started with variables, how to declare and use them.
• Next, we came across, what are the data types which we can use here in C language.
• Then we went through the input and output functions, how can we process the input and display
results.
[email protected]


ZWM4E6SAYB
Operators available in C through which we can perform various operations on our data.
• Various controls statements such as if, if..else, loops and switch case.
• Next, we introduced arrays in C, how to declare and use them with examples.
• Next up, we saw what functions are, how to use them in the program and recursion.
• Later we came across Strings, how to declare and built-in functions available in string.h.
• We introduced Structures and Union with an example for each. DO NOT WRITE ANYTHING
• A brief introduction to pointers, how to declare and use them with example. HERE. LEAVE THIS SPACE FOR
WEBCAM
This file is meant for personal use by [email protected] only.
Proprietary
Sharingcontent. ©Great Learning.
or publishing All RightsinReserved.
the contents Unauthorized
part or full uselegal
is liable for or distribution
action. prohibited

You might also like