fprintf() Function Deep Dive | C Programming Tutorial
HTML-код
- Опубликовано: 21 окт 2024
- An in-depth tutorial on how to use the fprintf() function in C to write to files (technically the function writes to "output streams"), including different ways to format output data, and outputting data in arrays (both 1D and 2D). Source code: github.com/por.... Check out www.portfolioc... to build a portfolio that will impress employers!
You must be without a doubt the best C teacher in youtube, every doubt I'm having I always end up in your videos, you're so clear with everything, I love it
Thank you Kewin! I’m glad you’re finding the videos helpful. :-)
I’m very thankful and happy for this video! It helps me to review what I learned this semester in my classes and also teaches me more relevant stuff! You’re the best of the best! I love you 😘 I hope you will keep making videos all the time as long as you can, and you will help numerous beginners like me! Eventually you are changing the world 🌎
Haha thanks so much for the kind words, and you're very welcome! :-) I am hoping to continue this channel for a long time, and eventually cover more programming languages, technologies and other concepts too.
awesome teacher thanks
I tried fprintf(fp,"%s %d %f
",name,age,height); on my program and the output turns out to be
John
21 178.20
Like after every string it automatically enters. Is there a way for it to be printed on the same line ?
Where did the string 'name' come from? Did you use the fgets function? You may need to remove the trailing newline if this is the case: ruclips.net/video/0UJX96_ZpVE/видео.html. 🙂
@@PortfolioCourses Thanks for the reply ! Im really thankful on top of all the tutorial you gave us for free! Tysm
No problem, and you’re welcome! :-)
Which C extension are you using in VSCode?
It looks like I just have C/C++ from Microsoft. :-)
Here before 2 views))
Haha awesome! :-) The first view is me so you’re definitely the first “real viewer”.