Post-increment vs pre-increment in C (a++ vs ++a)

  Рет қаралды 17,157

CodeVault

CodeVault

Күн бұрын

Пікірлер: 69
@alexandrealexandre6006
@alexandrealexandre6006 2 жыл бұрын
Greetings from Brazil! Your videos are helping many software engineering students from my school. Thanks for the content and great explanations! :D
@danielkusmaul3945
@danielkusmaul3945 2 жыл бұрын
Saw that you've been inactive, but happy to see your still actively answering questions in the comments. Hope your doing well!
@CodeVault
@CodeVault 2 жыл бұрын
I'm doing alright. I'm planning on uploading new content soon
@CediCore
@CediCore 2 жыл бұрын
I am so happy that I found You. You are the prototype perfect teacher in my world
@mohamedilyes375
@mohamedilyes375 2 жыл бұрын
you always have excellent videos thanks I learned a lot from you Greetings from Algeria
@alexandrupaulescu
@alexandrupaulescu 2 жыл бұрын
M-ai ajutat mult pentru Politehnica la lectiile de fisiere si serializare in struct. Multumesc mult si spor pe viitor!
@ronshabi6210
@ronshabi6210 2 жыл бұрын
You're back!! Thank you as always!
@kapellimestari0078
@kapellimestari0078 2 жыл бұрын
It would be very nice, if you make a video or a series of videos explaining everything about git, and github and so on, please
@CodeVault
@CodeVault 2 жыл бұрын
It's definitely on my todo list! Thanks for the recommendation
@anstbt
@anstbt 2 жыл бұрын
hello sir , could you make a video about the Dining Philosophers problem using mutexes in c. (threads)
@probexpd1916
@probexpd1916 2 жыл бұрын
Thank you so much for these fantastic explanations! You are a Code Saint! 👼
@vigneshnayak2012
@vigneshnayak2012 2 жыл бұрын
Can you please do a video on va_list, va_start and about variadic functions
@CodeVault
@CodeVault 2 жыл бұрын
Yes, I'll look into it. Thanks for the recommendation!
@QanarIsDelirious
@QanarIsDelirious 2 жыл бұрын
this helped me alot fix some logics behind recursive exam quests :D in all but one of them the print of the recursive function did just "print" the finished value that was called in printf %d , function ... but this one bugger returned a number-- and i didnt get it that the system returns 2 values the untouched value and the decremented one.. and it shows the untouched one return to the print .. waited for the "for" loop to end and then before it opened the next recursion it then accepted its decremented faith xD .... the hardest part to C is just that these small littl logics that our professor understands at 3am drunk.... isnt integrated in all fine details in us when he explains the core function of the project he uses :D
@max.hastings
@max.hastings 2 жыл бұрын
what keyboard do you use? I love the noise lol
@CodeVault
@CodeVault 2 жыл бұрын
DasKeyboard model S (brown switches). The keyboard has been with me for the last 9 years
@kevinbravo7694
@kevinbravo7694 2 жыл бұрын
hello can you explain / implement the heap in c? I found your stack video very helpful in understanding the concept and would like to view the heap in depth as well
@CodeVault
@CodeVault 2 жыл бұрын
I will look into it
@funelwar6734
@funelwar6734 2 жыл бұрын
Hello Sir You are very helpful To me may i know sir where are you now ? Please Start regular lecture I love and Studied from your video hope we can see you again And All the best to you whatever you doing you will got sucess God Bless!!
@CodeVault
@CodeVault 2 жыл бұрын
Will do. Thanks for the support
@dhineshkumars1991
@dhineshkumars1991 2 жыл бұрын
Expecting Socket programming playlist in C.
@suncrafterspielt9479
@suncrafterspielt9479 2 жыл бұрын
Hey, I hope you are ok. Have not heard from you in a while
@CodeVault
@CodeVault 2 жыл бұрын
I'm alright, just busy overall. Thanks for your concern
@WabonaDandi
@WabonaDandi Жыл бұрын
amazing explanation!
@zainebgabsi5500
@zainebgabsi5500 Жыл бұрын
can u help me with a shcool project urgently , i need to make a shell that executes 2 commands with && , between them . please help
@CodeVault
@CodeVault Жыл бұрын
You can ask on discord about this: discord.code-vault.net
@otnielewu7777
@otnielewu7777 2 жыл бұрын
Thanks for this nice tutorial!
@riccardosebastiani4571
@riccardosebastiani4571 2 жыл бұрын
Good morning Sir, could you do a video about pointers of array of struct? Like this: Struct struct_1 *p[ ] ; I mean, how can I use them in other functions (Not in Main)?
@riccardosebastiani4571
@riccardosebastiani4571 2 жыл бұрын
My program is working now! If you guy need help, use malloc for each index of the array and use *p[ ] in the prototype. Use the arrow operator ( p[i]->something ) REMEMBER to free each index
@riccardosebastiani4571
@riccardosebastiani4571 2 жыл бұрын
Anyway, I think is good idea doing a video about array of pointers. This can help everyone
@CodeVault
@CodeVault 2 жыл бұрын
There is this video: code-vault.net/course/ar67avx6hk:1610029043923/lesson/he9jn5x8b1:1603733522083 But I will also keep in mind and make a video specific to your problem
@riccardosebastiani4571
@riccardosebastiani4571 2 жыл бұрын
@@CodeVault thank you! I will see it, have a nice day
@ShermukhammadKarimov
@ShermukhammadKarimov 10 ай бұрын
Thank you so much
@robertosanz9501
@robertosanz9501 2 жыл бұрын
Hi there, can you do some videos about shared memory in linux? Thanks for your videos you are helping me so much with the OS course
@CodeVault
@CodeVault 2 жыл бұрын
Yes, I will look into it
@chemist27
@chemist27 4 ай бұрын
You are legend sir
@bartlomiejodachowski
@bartlomiejodachowski 2 жыл бұрын
Hi, is there video of yours where you mention about arrays size of 0 ???
@CodeVault
@CodeVault 2 жыл бұрын
Arrays that have size = 0 you mean?
@bartlomiejodachowski
@bartlomiejodachowski 2 жыл бұрын
@@CodeVault yes. for example thre is a trick like this: typedef struct Message { unsigned id; char text[0]; }M; M* m1 = malloc *(sizeof(M) + sizeof(char)*n)* ; _//now m1->text has size n instead of 0_ works only when empty array is last member of a struct, but what is this empty array?
@CodeVault
@CodeVault 2 жыл бұрын
Apparently it's called "flexible array member". Here's more details: stackoverflow.com/questions/36577094/array-of-size-0-at-the-end-of-struct I might make a video on this as I never used such a feature
@bartlomiejodachowski
@bartlomiejodachowski 2 жыл бұрын
@@CodeVault thanks :D I'm looking forward it
@nachochilli7683
@nachochilli7683 2 жыл бұрын
Hello your C videos are amazing ✨✨💖thank you! Can you make tutorials on app development for beginners?
@CodeVault
@CodeVault 2 жыл бұрын
iOS and Android? Probably I will start with some web development as that's widely used in app development these days. And go from there
@nachochilli7683
@nachochilli7683 2 жыл бұрын
@@CodeVault Android please
@eva.s
@eva.s 2 жыл бұрын
You're the best!
@donttrackme8590
@donttrackme8590 2 жыл бұрын
What happen when we compare two variable from different types in C (in x86 arch) ?
@CodeVault
@CodeVault 2 жыл бұрын
You usually just get a compilation error
@ForeverNils
@ForeverNils 2 жыл бұрын
Can you please explain why do you use GCC why not CLANG?
@CodeVault
@CodeVault 2 жыл бұрын
You can use whichever compiler you want. The only reason I use GCC is because I was familiar with it on Linux, that's about it
@titouanck
@titouanck 2 жыл бұрын
Thanks
@pseudounknow5559
@pseudounknow5559 2 жыл бұрын
Excellent
@20sbillionaires
@20sbillionaires Жыл бұрын
thank you:)
@tigranav.3960
@tigranav.3960 2 жыл бұрын
is ++a actually faster than a++ for base types (not for iterators)?
@kingneo4913
@kingneo4913 2 жыл бұрын
Yes! Not much, but yes
@CodeVault
@CodeVault 2 жыл бұрын
That's an interesting question. From what I read ++a and a++ in C, for integers, without using their values are exactly the same (the compiler does some optimizations). If using the value, you should expect that ++a is better since a++ has to store a temporary value and then increment a. Here are some links: stackoverflow.com/questions/24901/is-there-a-performance-difference-between-i-and-i-in-c stackoverflow.com/questions/24886/is-there-a-performance-difference-between-i-and-i-in-c/24887#24887 Now, I haven't fully researched this and certainly not on multiple architecture and compilers. If anyone else knows a better answer please feel free to post it here and I'll pin it!
@tigranav.3960
@tigranav.3960 2 жыл бұрын
@@CodeVault thanks a lot
@kapellimestari0078
@kapellimestari0078 2 жыл бұрын
very good
@DataStructures
@DataStructures 2 жыл бұрын
hello can you help find the bug in my program if i send it to you? I have been really stressed and I don't know what is wrong
@CodeVault
@CodeVault 2 жыл бұрын
Sure, I can help
@DataStructures
@DataStructures 2 жыл бұрын
I figured it out! Now I’m on a new assignment for djiskters algorithm
@DataStructures
@DataStructures 2 жыл бұрын
@@CodeVault I wonder how I could acquire such help from you if I ever actually needed it for something
@CodeVault
@CodeVault 2 жыл бұрын
@@DataStructures Fastest way is to just use the comments. I try to read and/or reply to every single comment. You could also direct message me on discord: discord.code-vault.net
@riperboyxl3216
@riperboyxl3216 Жыл бұрын
This channel made me realize I know nothing of C lol
@ramakrishna4092
@ramakrishna4092 2 жыл бұрын
Hi can you explain floating point representation in IEEE 754 FORMAT IN C LANGUAGE I am waiting for more videos like I have also registered in your site
@CodeVault
@CodeVault 2 жыл бұрын
Yes! It's an interesting topic and I have it on my todo list for a while. I'll see what I can do.
@playingnumber2211
@playingnumber2211 2 жыл бұрын
Hi could you pls do videos on asynchronous io like epoll pls
@CodeVault
@CodeVault 2 жыл бұрын
I'll look into it
@ryanalnaser914
@ryanalnaser914 2 жыл бұрын
whatever anything I do or did
@jr_jeet
@jr_jeet Жыл бұрын
nicenecineceeeee
How to generate random strings in C
8:16
CodeVault
Рет қаралды 4,2 М.
Issues with the pre- and postincrement operator in C, C++, etc.
5:32
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 30 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 35 МЛН
Difference between macros and constants in C
12:42
CodeVault
Рет қаралды 12 М.
Declaration vs. Definition of a variable in C
10:37
CodeVault
Рет қаралды 8 М.
Elementary School in China
9:08
MindYourDecisions
Рет қаралды 10 М.
Increment and Decrement Operators in Java
5:14
Neso Academy
Рет қаралды 97 М.
15 Years Writing C++ - Advice for new programmers
4:04
SyncMain
Рет қаралды 1,3 МЛН
Increment and Decrement Operators in C (Part 1)
10:55
Neso Academy
Рет қаралды 415 М.
No One Hires Jr Devs So I Made A Game
39:31
ThePrimeTime
Рет қаралды 335 М.
postfix vs. prefix increment operator | C Programming Tutorial
7:54
Portfolio Courses
Рет қаралды 16 М.