Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
File Handling | Preprocessor | Dynamic Memory Allocation | Switch Statement | C Programming 12
Play lesson

C Programming Course - File Handling | Preprocessor | Dynamic Memory Allocation | Switch Statement | C Programming 12

4.0 (2)
29 learners

What you'll learn

This course includes

  • 42.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this video, Raghav Garg Sir will teach you File Handling, Dynamic Memory Allocation, Preprocessor and Switch Statement. This is Lecture 12 of the C Programming series and the last lecture. Topics covered are - Basic header files and builtin functions like sqrt(), Macros and macro functions using #define, Switch statement and 2 questions related to it, DMA including stack and heap segment, malloc(), calloc(), realloc() and free(), and File handling which includes opening, closing, creating, reading and writing operations on a file. C Programming series is now FINISHED. See you soon in C++ / Java DSA series. For any Batch Related Queries Please Connect - 7019243492 Access Course Materials- https://pwskills.com/course/C++--Foundation Decode Batch:- DSA with C++ (Hinglish) http://bit.ly/4108YQC BINARY 2.0 Batch:- Java-with-DSA-&-System-Design 2.0(Java with DSA & System Design) https://bit.ly/3MfYusn (Hindi) http://bit.ly/40CvkrD (English) SIGMA 2.0 Batch:- Full-Stack-Web-Development 2.0(MERN Stack) http://bit.ly/3ZzShKJ - (Hindi) http://bit.ly/3zuBT3H - (English) IMPACT 2.0 Batch:- Data-Science-Masters 2.0(Full Stack Data Science) http://bit.ly/3U9EEAM (Hindi) http://bit.ly/3m2K5VR (English) Website - https://pwskills.com/ Instagram - https://www.instagram.com/pwcollegewallah/ Linked In - https://bit.ly/3ZFuBog Telegram - https://t.me/SkillsPW Discord - https://discord.gg/m7YSX6Xh Twitter - https://twitter.com/pw__skills πŸ“Œ ππ‡π˜π’πˆπ‚π’ 𝐖𝐀𝐋𝐋𝐀𝐇 πŽπ“π‡π„π‘ π˜πŽπ”π“π”ππ„ 𝐂𝐇𝐀𝐍𝐍𝐄𝐋𝐒 : 🌐 PhysicsWallah -Alakh Pandey: https://youtube.com/@PhysicsWallah 🌐 Alakh Pandey: https://youtube.com/@alakhpandey1414 🌐 JEE Wallah: https://youtube.com/@jee_wallah 🌐 Competition Wallah: https://youtube.com/@PW-NEETWallah 🌐 PW Foundation: https://youtube.com/c/PhysicsWallahFoundation 🌐 NCERT Wallah: https://www.youtube.com/channel/UC8zCnnfhz-dvIpVdZ1CheuA 🌐 Defence Wallah: https://youtube.com/channel/UC8OCoGX9tmMneOzIFUTWq2Q 🌐 PhysicsWallah English: https://youtube.com/@EnglishPW 🌐 PW Vidyapeeth: https://youtube.com/@VidyapeethPW 🌐 Commerce Wallah by PW: https://youtube.com/@commercewallahpw 🌐 CA Wallah bt PW: https://www.youtube.com/channel/UC2amkJX5zDyQJ0mDajAWRSA 🌐 PW Sarkari Exam: https://youtube.com/@PWSarkariExams 🌐 PW - Hindi Medium: https://youtube.com/@physicswallahhindimedium 🌐 PW Bangla: https://youtube.com/@pwbangla 🌐 PW Maharashtra: https://youtube.com/@PWMaharashtra 🌐 PW Telugu: https://youtube.com/@PWTelugu 🌐 PW Kannada: https://youtube.com/@PWKannada 🌐 PW Gujarati: https://youtube.com/@PWGujarati 🌐 PW Facts: https://youtube.com/@pwfacts 🌐 PW Insiders: https://youtube.com/channel/UCHMWQFr9Nwo3wJsAap2Wnfw 🌐 PW Little Champs: https://youtube.com/@pwlittlechamps 🌐 PW Pathshala: https://youtube.com/channel/UCcXUY9NSMyYbkOvUD97CUmA 🌐 Banking Wallah : https://www.youtube.com/channel/UCg5_K50hLTKerLkSE7I1yWQ 🌐 SSC Wallah : https://www.youtube.com/channel/UCcaEVV7A47J4k9GFcqOOYkg 🌐 JEE Challengers by PW : https://www.youtube.com/channel/UCyf71tWV2abeN-l_UKiJ-5g 🌐 UPSC Wallah : https://www.youtube.com/channel/UCqOy6oOu6RPJNHYQ8f_Ybvg 🌐 UPSC Wallah ΰ€Ήΰ€Ώΰ€¨ΰ₯ΰ€¦ΰ₯€ : https://www.youtube.com/channel/UCmrP-DYdZuThp8AO9lnnwNw 🌐 GATE Wallah : https://www.youtube.com/channel/UC9PoSJoftLvEnXT-PtQ5Wtw 🌐 GATE Wallah - EC,EE & CS : https://www.youtube.com/channel/UCuGWIkiNaWjsCqybgxGuxfg 🌐 GATE Wallah - ME, CE & XE : https://www.youtube.com/channel/UCGrrw9x3_B_fItUIBMvqAUw 🌐 GATE English : https://www.youtube.com/channel/UCOsV75fSUr8gnMbhx-Qh3Lg 🌐 College Wallah : https://www.youtube.com/channel/UCDrf0V4fcBr5FlCtKwvpfwA 🌐 PW IIT JAM & CSIR NET : https://www.youtube.com/channel/UCuj28Zll58sztDqLiDhzgtQ 🌐 Teaching Wallah: https://www.youtube.com/channel/UCUzqJZOkCejFoc5eqWWA9Eg 🌐 CUET Wallah: https://www.youtube.com/@cuetwallahpw πŸ“Œ ππ‡π˜π’πˆπ‚π’ 𝐖𝐀𝐋𝐋𝐀𝐇 π’πŽπ‚πˆπ€π‹ πŒπ„πƒπˆπ€ ππ‘πŽπ…πˆπ‹π„π’ : 🌐 Telegram : https://t.me/Physics_Wallah_Official_Channel 🌐 Facebook : https://www.facebook.com/physicswallah 🌐 Instagram : https://www.instagram.com/physicswallah/?hl=en 🌐 Twitter : https://twitter.com/physics__wallah πŸ“Œ For any queries or complaints Visit : https://bit.ly/PW_Queries 00:00 Introduction 01:38 Preprocessor and basic header files 02:01 Correction - # is preprocessor directive and #include is preprocessor 16:02 Macros using #define 23:02 Macro functions 25:27 Switch statement 26:25 Ques 1 : Print day if day number (1-7) is given 34:01 Ques 2 : Make a calculator using switch statement 40:35 Dynamic Memory Allocation 41:45 Static and Dynamic 48:58 Stack Segment 53:12 Heap Segment 55:06 malloc() 59:18 calloc() 1:06:34 Ques 3 : Take β€˜n’ integers input and print them 1:15:59 Memory Deallocation 1:16:27 free() 1:23:19 realloc() 1:29:56 File Handling 1:32:54 Read and Write 1:35:42 Opening a file 1:38:08 Reading from a file 1:42:58 Creating a file 1:44:04 Writing to a file 1:46:53 Closing a file #FileHandling #Preprocessor #DynamicMemoryAllocation #CollegeWallah #PhysicsWallah #PWSkills #CProgramming

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere