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
