Тёмный

Storage Duration and Linkage in C and C++ - Dan Saks 

NDC Conferences
Подписаться 198 тыс.
Просмотров 8 тыс.
50% 1

A name declared in C or C++ may have attributes such as type, scope, storage duration, and linkage. These attributes often interact in subtle and sometimes confusing ways. Nowhere is this more evident than in the behavior of the keyword static. In some declarations, the presence or absence of static affects storage duration. In other declarations, it affects linkage.
In C++, it can also affect function types. The keyword extern has its share of quirks, too. These subtleties create further confusion about which program behaviors occur at compile time, at link time, and at run time. This talk clarifies the distinction between two of these attributes: storage duration and linkage. It offers insights that will help you program more effectively and take better control of the storage layout of your programs.
Save the date for NDC TechTown 2020 (31st of August - 3rd of September)
Check out more of our talks at:
ndctechtown.com/
www.ndcconfere...

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@youcefsb4708
@youcefsb4708 3 года назад
This is proper C++ teaching, most of the other tutorials and learning resources are garbage.
@AlexanderRibchansky
@AlexanderRibchansky 2 года назад
Brilliant! No useless words, just needed information for fundamental blocks of C and C++. Thank a lot!
@PabitraPadhy
@PabitraPadhy 3 года назад
This video should have more views. This information compiled together is really helpful. Most programmers use this, but don't understand the underlying meaning of it. Dan is right, unless it bites you, you don't pay enough attention towards it. Thanks for the talk. Loved it :)
@vasanth0x55tube
@vasanth0x55tube 3 года назад
Truly master class.
@aniket1176
@aniket1176 2 года назад
Thanks a lot. Cleared a lot of doubts about static in c++.
@berktopbas1496
@berktopbas1496 10 месяцев назад
Where to find the slides of the presentation?
@crptc5707
@crptc5707 Год назад
It's mind blowing that I can add code like "int a; int a; int a = 42; int a;" before main function as global variable which is totally legal in c.
@nesessoftware
@nesessoftware 2 года назад
must see video
@_jasneetsingh_
@_jasneetsingh_ 2 года назад
explained the concept really well. One clarification: at 25:12, you told that a struct cannot have a static member? Can you share the reason for the same in C language?
@ic6406
@ic6406 2 года назад
He said about extern, not static
Далее
"New" Features in C - Dan Saks
59:52
Просмотров 120 тыс.
Пчёлы некроманты.
00:46
Просмотров 22 тыс.
LOLLIPOP-SCHUTZ-GADGET 🍭 DAS BRAUCHST DU!
00:28
Просмотров 11 млн
PERFECT PITCH FILTER.. (CR7 EDITION) 🙈😅
00:21
Просмотров 4,5 млн
Why You Should AVOID Linked Lists
14:12
Просмотров 278 тыс.
C++ Smart Pointers - Usage and Secrets - Nicolai Josuttis
1:02:22
An interview with Dan Saks
20:34
Просмотров 2,1 тыс.
Branchless Programming in C++ - Fedor Pikus - CppCon 2021
1:03:57