How to resize an array in C (Part 1)

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

CodeVault

CodeVault

Күн бұрын

Пікірлер: 50
@whoami-u9g
@whoami-u9g 6 ай бұрын
finally, he's back after 11 MONTHS
@peyop5262
@peyop5262 6 ай бұрын
Woah not only back, but back on Vim! 😱 ❤
@bhaviksachdev3999
@bhaviksachdev3999 6 ай бұрын
Great to see back! You taught me everything I know about processes!
@animeshsarkar295
@animeshsarkar295 6 ай бұрын
legend is back, thank you for coming back.
@MegaHatef
@MegaHatef 3 ай бұрын
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!
@booleyP
@booleyP 6 ай бұрын
YOOOO, I’m so happy your back. I am learning c and love your channel ❤
@tarekhamdoudi3144
@tarekhamdoudi3144 3 ай бұрын
Welcome back man. You might not know it, but you helped so many of us understand complex concepts.
@NatiShen
@NatiShen 6 ай бұрын
Your videos taught me C, from the ground up. No tutorial online is the same level as yours.
@habeebbabasulaiman7214
@habeebbabasulaiman7214 2 ай бұрын
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 2 ай бұрын
Yes, expect more videos soon
@koussailamessai7645
@koussailamessai7645 6 ай бұрын
you're videos are really helpful, respect from a cs student in france
@raul_ribeiro_bonifacio
@raul_ribeiro_bonifacio 6 ай бұрын
I liked the new video format.
@Turing-t2e
@Turing-t2e 6 ай бұрын
Thank you for these explanations. Great to receive your notification again.
@saiganesh2878
@saiganesh2878 6 ай бұрын
Glad your back!!
@howler-zu8xr
@howler-zu8xr 6 ай бұрын
Glad to see you back 😊 Your programming tutorials help so much 🔥🔥
@SergiuMuntean-q5n
@SergiuMuntean-q5n 6 ай бұрын
Videourile tale sunt minunate. M-am uitat recent la listele inlantuite. Cinste tie! :D Multumesc pentru ajutor!
@scottmandel6536
@scottmandel6536 6 ай бұрын
Very glad to see a new video from you!!
@-smokem
@-smokem 6 ай бұрын
I'm happy you're back!
@AndreFerreira-jv3qy
@AndreFerreira-jv3qy 6 ай бұрын
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 6 ай бұрын
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
@briman113
@briman113 6 ай бұрын
welcome back
@samadinizar1244
@samadinizar1244 5 ай бұрын
Welcome back
@gammyhorse
@gammyhorse 6 ай бұрын
Welcome back. May I ask If you can share your vim configuration? It looks very cool.
@CodeVault
@CodeVault 6 ай бұрын
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 6 ай бұрын
@@CodeVault Thank you very much.
@xxMKtooStronk__
@xxMKtooStronk__ 5 ай бұрын
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 2 ай бұрын
There is this video that explains how to do that: code-vault.net/lesson/53byrk5mx8:1603733520671
@DatBoi_TheGudBIAS
@DatBoi_TheGudBIAS 2 ай бұрын
The standard library already has a function like dat for U sprintf. Or if u don't like buffer overflows and like security, snprintf
@pietraderdetective8953
@pietraderdetective8953 2 ай бұрын
i love the switch to neovim! what's your thoughts on using neovim?
@CodeVault
@CodeVault 2 ай бұрын
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 2 ай бұрын
@@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!
@ulquiorra3504
@ulquiorra3504 6 ай бұрын
The GOAT 🔥🔥🔥
@ryuga6438
@ryuga6438 6 ай бұрын
thank you for your OS videos man, got an A watching your vids
@MagicThanos7
@MagicThanos7 6 ай бұрын
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 6 ай бұрын
Sockets and trees/graphs are my biggest goals right now
@MagicThanos7
@MagicThanos7 6 күн бұрын
@@CodeVault awesome, keep up the great content!
@honeybadger781
@honeybadger781 6 ай бұрын
Have you switched to vim? I learned to use it but I just couldnt switch to it.
@CodeVault
@CodeVault 6 ай бұрын
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
@habeebbabasulaiman7214
@habeebbabasulaiman7214 Ай бұрын
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 Ай бұрын
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
@pirithoven_tech
@pirithoven_tech 6 ай бұрын
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 6 ай бұрын
im so glad you're back btw
@CodeVault
@CodeVault 6 ай бұрын
The next video will be about that
@brunorcabral
@brunorcabral 6 ай бұрын
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 6 ай бұрын
No. Similar to how "arr = arr2" failed, "arr = realloc(...)" would also fail.
@DatBoi_TheGudBIAS
@DatBoi_TheGudBIAS 2 ай бұрын
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
@ile1237
@ile1237 6 ай бұрын
Nice glowup man
@bugrahanozcan8682
@bugrahanozcan8682 6 ай бұрын
I write my own cpp-like vector and you post this video after that :D
@Brad_Script
@Brad_Script 5 ай бұрын
Same. I made templates for vector and hashmap in C last week.
@abzrg
@abzrg 4 ай бұрын
Welcome back
Resize arrays using a function (Part 2)
12:05
CodeVault
Рет қаралды 937
What are Race Conditions?
13:09
CodeVault
Рет қаралды 96 М.
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 10 МЛН
Dynamic Arrays in C
11:46
Dylan Falconer
Рет қаралды 70 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 92 М.
Why C Pointers?
6:07
thedoubleeguy
Рет қаралды 2,2 М.
How to Resize an Array in C/C++? Is there a best way?
12:16
Jacob Sorber
Рет қаралды 24 М.
Format and parse datetime in C
17:41
CodeVault
Рет қаралды 4,2 М.
What are variadic functions (va_list) in C?
13:49
CodeVault
Рет қаралды 24 М.
How to use realloc in C
11:56
CodeVault
Рет қаралды 10 М.
Why double the size of an array? (Part 3)
8:41
CodeVault
Рет қаралды 438
Arrays vs Linked Lists - Computerphile
29:57
Computerphile
Рет қаралды 494 М.
you need to stop using print debugging (do THIS instead)
7:07
Low Level
Рет қаралды 455 М.