Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

How To Return A String From A Function | C Programming Tutorial

22.7K views on YouTube

How to return a string from a function using C. Methods covered include returning a pointer to a string literal, using pass by reference (i.e. pass by pointer) to effectively “return” a string, and returning a pointer to a dynamically allocated string. Source code: https://github.com/portfoliocourses/c-example-code/blob/main/return_a_string.c. Check out https://www.portfoliocourses.com to build a portfolio that will impress employers!