Documente Academic
Documente Profesional
Documente Cultură
ANDHRA PRADESH
Name : Murali Krishna Chintala
Designation : Lecturer in CME
Branch : Computer Engineering
Institute : SUVR & SR GPW, Ethamukkala
Year/Semester : III Semester
Subject : UNIX & C
Subject Code : CM – 304
Topic : Basics of Pointers
Duration : 50 Min
Sub Topic : Pointer arrays
Teaching Aids : PPT, Animations
CM304.73 1
Objective
CM304.73 2
Pointers and Arrays
An array of pointers is an array that contains
pointers as it’s elements.
Bombay
Delhi
Madras
Kolkata
Hyderabad
CM304.73 4
Pointers and Arrays
Contd..
The above strings can be stored in a two
dimensional character-type array declared as
char city[5][12];
CM304.73 7
Pointers and Arrays
Contd..
CM304.73 8
Pointers and Arrays
Contd..
CM304.73 9
Contd..
printf(“original %s%s”,names[1],names[2]);
temp=names[1];
names[1]=names[2];
names[2]=temp;
printf(“new %s%s”,names[1],names[2]);
}
CM304.73 10
Pointers and Arrays
Contd..
Output:
CM304.73 11
Summary
a) True
b) False
c) None
CM304.73 13
Quiz
a) True
b) False
c) None
CM304.73 14
Quiz
c) both
CM304.73 15
Quiz
c) both
CM304.73 16
Assignment
CM304.73 17
Frequently asked questions
CM304.73 18