How to resize an array in C (Part 1)

  Рет қаралды 3,338

CodeVault

CodeVault

Күн бұрын

Пікірлер: 50
@chlorine-u5g
@chlorine-u5g 7 ай бұрын
finally, he's back after 11 MONTHS
@peyop5262
@peyop5262 7 ай бұрын
Woah not only back, but back on Vim! 😱 ❤
@bhaviksachdev3999
@bhaviksachdev3999 7 ай бұрын
Great to see back! You taught me everything I know about processes!
@MegaHatef
@MegaHatef 5 ай бұрын
I have been watching your videos on and off since years ago, the way you teach the code is so clear and simple which I truly love. I personally like you as you remind me my very old friend from my home country. You are amazing and please continue!
@animeshsarkar295
@animeshsarkar295 7 ай бұрын
legend is back, thank you for coming back.
@booleyP
@booleyP 7 ай бұрын
YOOOO, I’m so happy your back. I am learning c and love your channel ❤
@tarekhamdoudi3144
@tarekhamdoudi3144 4 ай бұрын
Welcome back man. You might not know it, but you helped so many of us understand complex concepts.
@habeebbabasulaiman7214
@habeebbabasulaiman7214 3 ай бұрын
Wow so you're back? I just want to start start coding C after sometimes now and I was like lemme get started with your tutorial on threading just to see that you're back now. You're a legend to me sir
@CodeVault
@CodeVault 3 ай бұрын
Yes, expect more videos soon
@NatiShen
@NatiShen 7 ай бұрын
Your videos taught me C, from the ground up. No tutorial online is the same level as yours.
@Turing-t2e
@Turing-t2e 7 ай бұрын
Thank you for these explanations. Great to receive your notification again.
@koussailamessai7645
@koussailamessai7645 7 ай бұрын
you're videos are really helpful, respect from a cs student in france
@howler-zu8xr
@howler-zu8xr 7 ай бұрын
Glad to see you back 😊 Your programming tutorials help so much 🔥🔥
@scottmandel6536
@scottmandel6536 7 ай бұрын
Very glad to see a new video from you!!
@saiganesh2878
@saiganesh2878 7 ай бұрын
Glad your back!!
@-smokem
@-smokem 7 ай бұрын
I'm happy you're back!
@SergiuMuntean-q5n
@SergiuMuntean-q5n 7 ай бұрын
Videourile tale sunt minunate. M-am uitat recent la listele inlantuite. Cinste tie! :D Multumesc pentru ajutor!
@raul_ribeiro_bonifacio
@raul_ribeiro_bonifacio 7 ай бұрын
I liked the new video format.
@AndreFerreira-jv3qy
@AndreFerreira-jv3qy 7 ай бұрын
Thank you for returning i learned a lot through your videos, ready to learn more! Are you planning of releasing any content related to inotify api in the future?
@CodeVault
@CodeVault 7 ай бұрын
That might be a little too in-depth and there are other courses I want to record that are much more requested: sockets and trees/graphs. After I'm done with those I'll consider this, either way, I noted down your idea
@ryuga6438
@ryuga6438 7 ай бұрын
thank you for your OS videos man, got an A watching your vids
@briman113
@briman113 7 ай бұрын
welcome back
@Letsgoletsroll
@Letsgoletsroll 7 ай бұрын
I have one question. How make a function which returns a string but not only some dummy string, string with parameters. So how to make a function which have for example one string and one int as parameters and return string which have those two parameters?
@CodeVault
@CodeVault 3 ай бұрын
There is this video that explains how to do that: code-vault.net/lesson/53byrk5mx8:1603733520671
@DatBoi_TheGudBIAS
@DatBoi_TheGudBIAS 3 ай бұрын
The standard library already has a function like dat for U sprintf. Or if u don't like buffer overflows and like security, snprintf
@MagicThanos7
@MagicThanos7 7 ай бұрын
hello my friend, i finished watching your processes and threads playlists. amazing videos! I was wondering if you would ever make a playlist explaining sockets
@CodeVault
@CodeVault 7 ай бұрын
Sockets and trees/graphs are my biggest goals right now
@MagicThanos7
@MagicThanos7 Ай бұрын
@@CodeVault awesome, keep up the great content!
@gammyhorse
@gammyhorse 7 ай бұрын
Welcome back. May I ask If you can share your vim configuration? It looks very cool.
@CodeVault
@CodeVault 7 ай бұрын
I uploaded it to GitHub: github.com/MuresanSergiu/nvim-config/ The config is currently a mishmash of things started from ThePrimagen's config. There are some custom utilities in init.lua, otherwise, nothing too fancy (yet)
@gammyhorse
@gammyhorse 7 ай бұрын
@@CodeVault Thank you very much.
@pietraderdetective8953
@pietraderdetective8953 3 ай бұрын
i love the switch to neovim! what's your thoughts on using neovim?
@CodeVault
@CodeVault 3 ай бұрын
Can't live without vim motions anymore. Neovim's Lua API is a bit strange and would like it to be improved. Also, certain plugins cause too much lag but, once I optimize it a little it can easily handle files with millions of lines (something that I couldn't really do in VSCode). I may make a few videos on this topic, vim motions are truly a game changer for me
@pietraderdetective8953
@pietraderdetective8953 3 ай бұрын
@@CodeVault yeah that's basically my experience too! please do the neovim video once you got the time. would absolutely love to see you discuss on this topic. Probably package the video so that it touches several topics at once like: "my neovim config and plugins to code C programs". Cheers!
@pirithoven_tech
@pirithoven_tech 7 ай бұрын
Just imagine what we can do by encapsulating a pointer in a struct and add to the struct the length of the pointer, then we can implement a function that receives a pointer to the that struct and sort of "pushes" another element into the pointer and updates the length part of the struct, essentialy a vector in c
@pirithoven_tech
@pirithoven_tech 7 ай бұрын
im so glad you're back btw
@CodeVault
@CodeVault 7 ай бұрын
The next video will be about that
@samadinizar1244
@samadinizar1244 7 ай бұрын
Welcome back
@bugrahanozcan8682
@bugrahanozcan8682 7 ай бұрын
I write my own cpp-like vector and you post this video after that :D
@Brad_Script
@Brad_Script 7 ай бұрын
Same. I made templates for vector and hashmap in C last week.
@ulquiorra3504
@ulquiorra3504 7 ай бұрын
The GOAT 🔥🔥🔥
@habeebbabasulaiman7214
@habeebbabasulaiman7214 2 ай бұрын
Please sir I've veen following your C tutorials since February this year and uts been super topnotch and even regret not seeing your channel earlier in last year or even ending of 2022 ehen i have first encounter with programming cause i started my programming lifestyle from C with ALXSE (school). I'd love to know what year you started leaening C and where you learned from to be so good like this sir. If you don't mind you xan share what programming field your work is based on. Is it embeded system or anything in the computer science field Thank you sir.
@CodeVault
@CodeVault 2 ай бұрын
I learned C/C++ way back in 5th or 6th grade (can't really remember) from a book for beginners. Nowadays I am actually working in Web/Mobile development
@honeybadger781
@honeybadger781 7 ай бұрын
Have you switched to vim? I learned to use it but I just couldnt switch to it.
@CodeVault
@CodeVault 7 ай бұрын
Yes. I exclusively use NeoVim now. I've got lots to learn still but it didn't take more than a month to get to the same speed as before. ThePrimeagen had a great video to setup NeoVim so it has the same autocomplete features as VSCode and other editors. Without the LSP (the autocomplete) I wouldn't have switched
@ile1237
@ile1237 7 ай бұрын
Nice glowup man
@brunorcabral
@brunorcabral 7 ай бұрын
At first you used an array, `int arr[4]`, then you changed to malloc(). Does realloc() works with arr[]? Is there a solution for arr[] that does not involve a copy?
@CodeVault
@CodeVault 7 ай бұрын
No. Similar to how "arr = arr2" failed, "arr = realloc(...)" would also fail.
@DatBoi_TheGudBIAS
@DatBoi_TheGudBIAS 3 ай бұрын
It is impossible to resize a static array. A static array is any array declares with [] Only dynamic arrays (heap arrays) can be resized by realloc or similar functions
@abzrg
@abzrg 6 ай бұрын
Welcome back
Resize arrays using a function (Part 2)
12:05
CodeVault
Рет қаралды 1 М.
What are variadic functions (va_list) in C?
13:49
CodeVault
Рет қаралды 26 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 314 М.
Dynamic Arrays in C
11:46
Dylan Falconer
Рет қаралды 73 М.
I made Tetris in C, this is what I learned
15:15
Austin Larsen
Рет қаралды 24 М.
Stop using std::vector wrong
23:14
The Cherno
Рет қаралды 163 М.
Why are function pointers useful?
6:43
CodeVault
Рет қаралды 32 М.
Introducing Clay - High Performance UI Layout in C
35:19
Nic Barker
Рет қаралды 213 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 99 М.
Arrays vs Linked Lists - Computerphile
29:57
Computerphile
Рет қаралды 495 М.
do you know how "return" works under the hood? (are you SURE?)
5:08
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 678 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН