02
x
5
24588

Pointer variable

24588
Integer
x

5

Real
y
3.14

ch
A

Character
Types of constant
Data Types

Primary Constants

Numeric
Integer

Secondary Constants

Non-Numeric
Real

Pointer

Character

Array

String

Structure

Union
Integer
x

5

Real
y
3.14

ch
A

Character
Types of constant
Data Types

Primary Constants

Numeric
Integer

Secondary Constants

Non-Numeric
Real

Pointer

Character

Array

String

Structure

Union
Data Type
Built – in Data Type

•int
•float
•char

Derived Data Type

•pointer
int *ptr;

*

ptr

ptr is pointer variable
int x;
ptr = &x;
&: Address Operator

x

ptr
float y;
char ch;
float *fptr;
char *cptr;
fptr = &y;
cptr = &ch;

x

ptr

ch

y
cptr
fptr

Pointers in C basics 01