How to read and store all the lines of a file into a dynamically allocated array of strings in C. Source code: github.com/portfoliocourses/c.... Check out www.portfoliocourses.com to build a portfolio that will impress employers!
Пікірлер: 47
@Majkieboy Жыл бұрын
Very happy to have found these, not enough C content around these days. Good job.
@edenng8431 Жыл бұрын
Fantastic! Great details! Thank you for updating the C series.👍
@MrBolcetik Жыл бұрын
I am currently an active student in Software Engineering, and every time you post a video it always related with the content that I am currently dealing with 😂. Thank you for this great video!
@fifaham Жыл бұрын
Very helpful and useful, thank you Kevin. The good things about microcontrollers is that they can have their built-in memory expanded by connecting them to external memory, and that can be very large. A multiple blocks of memory chips can store large files of data and text for processing them at later time.
@arthur_p_dent4282 Жыл бұрын
Your content is second to non. Thanks you so much.
@naboulsikhalid7763
Great content, I think everything is mentioned here. Thank you KEVIN
@idanmariani8601 Жыл бұрын
thank you very much like allways.. i wish everyone will get to know your awsome channel and have tons of subscribed
@pragunmike1642 Жыл бұрын
This is fab. Thank you 🙌🏻🙌🏻🙌🏻
@LMZ914
Thank you sir you are the best
@richarddaygm
It is obvious but worth pointing out sizeof(char) is always 1, unlike sizeof(char *) which is the size of the pointer. So in the realloc, there is no point in timesing by sizeof(char), even though it would be more symmetrically pleasing!
@dev_ression Жыл бұрын
great explanation bro!
@sgarcia1070 Жыл бұрын
I have two quick questions, what is the purpose of using the value of 1024 as suppose to another value, and my second question is does free() erase what’s in the string?
@dogdog5994 Жыл бұрын
A little suggestion. You made a video about threading in C using the POSIX pthread library. I suggest videos about C11 threads and maybe more videos about POSIX threads (pthread).
@yamithere_ Жыл бұрын
I just wanna ask what is the difference between having brackets after the for loop and nesting the next for loop compared to the ones without the brackets?
@ziwaang2250
Great video! For a 2D string array, would it then be "char ***" ?
@ramakrishna4092 Жыл бұрын
Wonderful explanation sir and congratulations for 22k sub...👏👏👏
@mba2ceo
plz do this in c++ using NEW
@jerryli5555
The getline() Function can read a whole line
@Mo3au4HbIu_Ba3oH Жыл бұрын
I was looking for some copper, but found the real gold
@studentofedison421
why **line instead of *line . why line is a pointer to pointer to char instead of pointer to char