Understanding the Wild Pointers

preview_player
Показать описание
Data Structures: Understanding the Wild Pointers
Topics discussed:
1) What is a Wild Pointer?
2) An example Wild Pointer.
3) How to avoid the Wild Pointers?

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

#DataStructuresByNeso #DataStructures #WildPointer #Pointer
Рекомендации по теме
Комментарии
Автор

in the last example
after free(p);
p will become the dangling pointer or not ?
according to me it will .

vishugahlot
Автор

instead of initializing wild pointers with (1) address of memory and (2) using malloc which may result in dangling pointer if null not used

why not direct initialize it with null as that's gonna be the simplest step to avoid wild pointers.

aryanrasaily
Автор

sir in the second case of avoid . is ptr is not behaving line dangling pointer . we did not need to reinitialize with NULL .
please reply.

gyanendramohanpatel
Автор

Pls try to upload data structures full course asap

urvashidhangar
Автор

Or you could also avoid a wild pointer by initializing it with NULL.

dhairyapatel
Автор

sir we want such tutorials on python too...

kingdey
Автор

Dear Neso Academy , Please reply what is the difference between datastructures and advanced datastructures?

monicabattacharya
Автор

Thanx for great videos can u plzz guide me.. more for my successfully carrier...

sagarsingh-zyws
Автор

in the second point (explicitly allocate the memory )
is p dangling pointer ?

prajwalgaidhani
Автор

we can also assign the pointer to null

debajyotighosh
Автор

In second example after free(p) the ptr will now does not point anywhere so is it now dangling pointer since we have not reinitilized again?

prajwalh
Автор

Please download explain for Dynamic memory allocation "malloc and calloc"

ahmedkilany
Автор

Bro u told uninitialized comes under null pointer

friendsfandom
Автор

Can't we avoid wild pointers by NULL

compilerrun
Автор

These are very short videos, please try to upload more videos in one day

garykapoor
Автор

Mere teacher oops ke pura Apna handwritten notes bheje
Guess what yhi Se likhe hai pura...
#Enginnerling

sastaengineer
Автор

Why not simply assigning NULL to the pointers to avoid it being WILD POINTER?

shadespitterr
Автор

last example is still a problem as pointer 'p' is still pointing to an unallocated memory address. Seems simply assigning NULL to the pointer 'p' will solve the problem

narendrajayram
Автор

Why the F are you casting malloc in C!

AutoFirePad