Documente Academic
Documente Profesional
Documente Cultură
Session Name: Swap function using pointers Author Name: Prof. Dinesh .D.Patil Department: Computer Science & Engineering Subject/Course: C Programming/SE Comp Cell Number: < 9561294444>
Session Objectives
At the end of this session, the learner will be able to:
Understand what is swapping Know the necessity of pointers in swapping Develop the swapping program Teaching Learning Material White Board and Markers
Topic Name: C Program for Swapping of two Numbers Page 2 Author Name: Prof. D.D.Patil College Name: S.S.G.B.C.O.E & T,Bhusawal
Session Plan
Time (in min) Content Learning Aid and Methodology Faculty Approach Typical Student Activity Learning Outcomes (Blooms + Gardeners) Understand Inter Personal Spatial Linguistic Logical Remember Interpersonal Linguistic Logical Understand Logical Visual Linguistic Apply Logical Linguistic Remembering Logical
15
Concept of Swapping
Participate
10
Compilation process w. r. t. swapping Swap Function With and without pointer Swap Function With and without pointer Conclusion of Swapping
Group Task
10
Demonstration
observe
20
Assignment
Develops program
Keywords
Topic Name: C Program for Swapping of two Numbers Page 3 Author Name: Prof. D.D.Patil College Name: S.S.G.B.C.O.E & T,Bhusawal
Session Inputs
<
Suggested Activity: Role Play I have assign different task for 9 students, every student execute their own task in the program Sequence. The video for the role play is attached.
Suggested Activity: Role Play I have assign different task for 9 students, every student execute their own task in the program Sequence. The video for the role play is attached.
Suggested Activity: Role Play I have assign different task for 9 students, every student execute their own task in the program Sequence. The video for the role play is attached.
Topic Name: C Program for Swapping of two Numbers Page 4 Author Name: Prof. D.D.Patil College Name: S.S.G.B.C.O.E & T,Bhusawal
Suggested Activity: Role Play I have assign different task for 9 students, every student execute their own task in the program Sequence. The video for the role play is attached.
Suggested Activity: Role Play I have assign different task for 9 students, every student execute their own task in the program Sequence. The video for the role play is attached.
< how swapping can be done using pointer ,in swapping a program initial value of variable is interchange using third variable >
Topic Name: C Program for Swapping of two Numbers Page 5 Author Name: Prof. D.D.Patil College Name: S.S.G.B.C.O.E & T,Bhusawal
Topic Name: C Program for Swapping of two Numbers Page 6 Author Name: Prof. D.D.Patil College Name: S.S.G.B.C.O.E & T,Bhusawal
Summary
In this session, we learnt to: How the c program is execute. Use of pointer Role of Complier Sequence of execution of program .
Topic Name: C Program for Swapping of two Numbers Page 7 Author Name: Prof. D.D.Patil College Name: S.S.G.B.C.O.E & T,Bhusawal
Assignment
1. Write a program for swapping of two numbers using arithmetic operator.
Topic Name: C Program for Swapping of two Numbers Page 8 Author Name: Prof. D.D.Patil College Name: S.S.G.B.C.O.E & T,Bhusawal
References
Let us C by yashwant Kanetker.BPB Publication
C through by G.S.Buluja, Dhapat rai & co.
Topic Name: C Program for Swapping of two Numbers Page 9 Author Name: Prof. D.D.Patil College Name: S.S.G.B.C.O.E & T,Bhusawal