Understanding the Null Pointers

preview_player
Показать описание
Data Structures: Understanding the Null Pointers
Topics discussed:
1) What is a Null pointer?
2) The use of Null pointers.
3) Facts related to Null pointer.
4) Best practices related to Null pointers.

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

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

Excellent course, better than any University !! the whole c programming in one course, amazing .. recommended for beginners and advanced also

safimsallam
Автор

This channel is a blessing for all engineering students ❤️

vaibhavpandey
Автор

Additional points

1.null pointer is a pointer which points to the memory.where that memory is allocated to OS. We can't assign a memory to already reserved memory for OS. So why it's called null pointer

2.The size of pointer depends on compiler. Which means if the compiler use 16 bit address line then size of pointer is 2bytes like turbo c .if compiler use 32bit address line then the size of pointer is 4 bytes like gcc or if it use 64 bit address line the size of it is 8 bytes like morden gcc. So the size of pointer is only depends on address line of compiler not depends on anything else.

BCGMCS
Автор

A great learning channel....Its like a boon for me....Thankyou so much for working so hard.

istutirajeev
Автор

Excellent teacher you're sir ji🙏🙏🙏❤️❤️

VishalYadav-ssqv
Автор

Best explanation on youtube let me tell you

xpenguin
Автор

Sir ur my best teacher in life because I feel fail this subject by u I got confidence

sandhyagowdu
Автор

Very helpful video about NULL pointer 😇

kunalsoni
Автор

Nice..need more topics of data Structure

TONY-kqtf
Автор

At 2:43, suppose we declare "ptr" as a void pointer.... Then also, we have to typecast "ptr" to get 0 as output without getting

For example:

int main() {
void *ptr=NULL;
printf("%d", (int*)ptr);
return 0;
}

👆 Like this????

hrishikeshkashyap
Автор

Please upload the whole course as soon as possible please sir 🙏🙏🙏🙏🙏🙏

Red-gf
Автор

Hi sir plz upload all the videos soon plz plz, my humble request

arunkumar-xunr
Автор

1:42 *ptr=NULL;
should be correct during initialization.

firstnamelastname
Автор

Difference between Null pointer and Dangling pointer??? by looking at the definition, it's seems to be same.

sagarlodhiya
Автор

Is it not incorrect to say that it doesn't point to any memory location since if you look at the memory layout of an operating system a null pointer would be the area beneath the Text/Code segment? Wouldn't it be more correct to say "which points to an invalid memory location" ?

DINO
Автор

the way he pronounced "a null" is very funny

TakoGod
Автор

Why should you do a null check before dereferencing a pointer, if it’s null isn’t it going to dereference to 0 anyways

MissTweenn
Автор

2:59 there is segmentation fault in vscode

akaashtripathi
Автор

What is null pointer assignment error in c?

nagababuveeranki
Автор

When I try to initialise a pointer to NULL i get this error: ‘NULL’ undeclared (first use in this function)

totsh