C++ Initializing Variables (3 ways including Brace Initialization)

preview_player
Показать описание
Initializing variables in C++ using braces and other methods.
Рекомендации по теме
Комментарии
Автор

Great explanation. Just started learning C++ after learning Python and honestly this is WILD to me.

expansivegymnast
Автор

this is the only clear video that i have found on this lol thanks

wodeybrown
Автор

Hi what will happen if we leave int x{}; braces empty? Will it by default initialize with zero?

romanempire
Автор

int a=5; is still better IMO. The parentheses looks like a mangled function call and the curly braces looks like a bad block. Not a fan at all.

FPChris