Struct hack | GeeksforGeeks

preview_player
Показать описание
Find Complete Code at GeeksforGeeks Article:

This video is contributed by Vishal Gulia

Please Like, Comment and Share the Video among your friends.

Install our Android App:

If you wish, translate into local language and help us reach millions of other geeks:

Follow us on Facebook:

And Twitter:

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

I didn't understand that sizeof(*e) will gives u the pointer size but we have two integers in the structure which requires minimum 2 pointers size. How is it possible

vishnuvardhan
Автор

Please make videos for competitive programming questions with solutions

ashishsinha
Автор

How is this a struct hack? This is bad programming. Just use a char pointer for the name and allocate that.

codeWithNoComments
Автор

Can you plz explain as to why we have passed length of the string as third argument in strcpy??

shobhitkumar
join shbcf.ru