Difference between Declaration and Definition of variables in C

preview_player
Показать описание
In this video you will learn the difference between declaration and definitions of a variable in C. You will go through few code snippets helping you understand the concept thoroughly. You will also understand how compiler manages variables based on declaration and definition.
Рекомендации по теме
Комментарии
Автор

While practicing interview questions from the book Let us C, I couldn't understand the answer of this question then I came here n really now it's totally clear for me.
Thank You sir!

arghasen
Автор

When you return int i, at that time the variable is declared and defined too because it get memory allocation with a garbage value .

tanulrai
Автор

Thank you so much now I relize tge difference

ברגריסריו
Автор

When the memory is allocated while declaration or definition??? Please tell me

ajithanandhan
Автор

U really super bro, thank you so much

singaiahsingotu
Автор

Is initialisation and definition are same

saipatel