Back to Browse

05. C Programming for IA: Compiling 'Hello, World', argv, argc, structs, malloc, memory leaks, etc.

280 views
Oct 6, 2023
25:35

In this sixth and last video in my series on C programming for image analysis (CPIA), I demonstrate practicalities of compiling with the 'Hello, World!' program and show how to use arguments. I explain how to make new data types with structures and typedefs, the use of malloc, how to avoid memory leaks - and more! These tutorials are designed for mature students without prior experience in programming, computer science, maths or engineering. CONTENTS ======== 00:00 Subjects to be covered 00:42 Development environments (DE, IDE) 03:24 Installing GCC and Geany 05:10 Compiling ‘Hello, World!’ 10:04 Arguments of the ‘main’ function 15:50 Typedefs, Structures, Unions [See CORRECTION in the comments, I made an error here] 21:08 Dynamic memory allocation: malloc, free 23:26 Coding self study guide 24:11 Summary SUPPORT PUMA ============ PUMA is an open source microscopy project. You can help support the project by: 1. Become a Patron: https://www.patreon.com/PUMAMicroscope 2. Donate via PayPal: https://www.paypal.com/donate/?hosted_button_id=NPMYJKJATDLQ4 3. Simply subscribing to this YouTube channel, like, comment and share these videos. 4. Spread the word - post the news about PUMA and link to this YouTube channel on your social media sites and any other outreach method (tell your friends, colleagues, students or teachers and lecturers about PUMA, for example). 5. Consider purchasing your optics and related supplies from our affiliated online optics store, OptArc.co.uk ( https://www.optarc.co.uk/ ) --- FURTHER LEARNING LINKS ====================== Reference book: The C Programming Language, 2nd Edition by Brian W. Kernighan, Dennis M. Ritchie ISBN-10 0131103628 ISBN-13 978-0131103627 Installing gcc on macOS: https://osxdaily.com/2023/05/02/how-install-gcc-mac/ https://www.youtube.com/watch?v=h-PkXGI-fwE https://trinhminhchien.com/install-gcc-g-on-macos-monterey-apple-m1/ Installing gcc on Windows: https://www.msys2.org/ Geany website: https://www.geany.org/ Using scanf() to get input: https://sekrit.de/webdocs/c/beginners-guide-away-from-scanf.html

Download

0 formats

No download links available.

05. C Programming for IA: Compiling 'Hello, World', argv, argc, structs, malloc, memory leaks, etc. | NatokHD