Variable Length Arrays in C

preview_player
Показать описание
C Programming: Variable Length Arrays in C
Topics discussed:
1) Variable Length Arrays in C.
2) Example of Variable Length Arrays in C.
3) Advantages of Variable Length Arrays in C.
4) Properties of Variable Length Arrays in C.

Music:
Axol x Alex Skrindo - You [NCS Release]

#CProgrammingByNeso #CProgramming #Arrays #VariableLengthArrays #ArraysInC
Рекомендации по теме
Комментарии
Автор

completed 100 classes successfully now i feel confident in c thank you neso academy for your valuable classes and also this is one of the best youtube channel for c programming language!!!

venkatesh
Автор

Here I Proudly say that I watched all Your 101 Videos till now, Awesome Course Going ON!!
Thanks Sir!!

roshanmhatre
Автор

While C99 was a required feature of C99, it was not mandatory in C11. It was implemented on the stack on GCC, while implementing it on the heap is also allowed, making it possible to return a variable-length array to another function. This ambiguity makes it an unreliable feature potentially causing importability of the code. Linus Torvalds forbade using variable-length arrays in the Linux kernel, explaining: _"USING VLA'S IS ACTIVELY STUPID! It generates much more code, and much slower code (and more fragile code), than just using a fixed key size would have done."_ The Linux kernel is free from variable-length arrays since Linux 4.20 kernel.

rursus
Автор

helps alot in making short n crisp notes for my end sem, this community is indeed a life boat for me. thanks:)

tarupathak
Автор

Successfully completed 100 lectures n feeling much more confident.#NesoAcademy

debajyotibhatta
Автор

Love you sir your explanations strategy is awesome

abhisheksahu
Автор

VLA do not have to be on stack. One can create VLA with dynamic storage by a pointer to an array. Try `int (*a)[n] = malloc(sizeof *a);`

tomaszstanislawski
Автор

The first time you get wrong because it is not possbile to initialize something in between the program, it is only initized at the starting only rather all compiler compiles it but at theory level it is wrong pls go through it and assure me I am right or not. And for this concept we use calloc and malloc

clashbegins
Автор

This one needs good examples and bad examples. I'm sure the concept is easy enough to understand that examples are not needed, but since I am burning through all of these at 1.5 speed as a 5-year refresher, a couple quick examples would help drive the point home.

rlibby
Автор

Thanks, i think when i type for any programming tutorial . All which comes is just teachers writting on boards. Your is best and least boring way !!!!👍👍👍keep it up..

RahulSharma-ffld
Автор

sir i follow your all lecture and i enjoy it please give me video on pointer and file handling

SoftwareDevPondi
Автор

One question Sir ! In yur previos videos yu told this property as an advantage of macro so what we should consider more ?

priyanshushankhdhar
Автор

You should have given the example of static array length and array initializer during the last minutes of the video with code example to help understand what you are trying to covey.

datasciencecamp
Автор

giving segmentation fault. used malloc instead now it works

Randibaaj_sala
Автор

Great demonstration, I love the way you delivered lecture astounding sir

prakharmishra
Автор

1:16
When i made a programme simmilar to yours...i.e when i declare an array after printf and sacnf, an error popps up ....
Declaration not allowed here. Why it happens?

sohamajgaonkar
Автор

Int size=5;
Int array[size]={1, 2, 3, 4, 5};
Is this allowable???...please reply me sir...

anusha
Автор

Please sir complete data structure series...

sajadulislamdipu
Автор

what if we want to have variable length arrays inside structures??

dhruvvbatra
Автор

Compeleted 100..
Now looking forward for double century 200
😁😁

dennyage