← Back to feed
Renewal·서른의 생활코딩

C/C++ Lesson 02: Variables and Operators

NS
normalstory
cover image

Variables and Operators < p.81 >

Data type = the size of the container that holds data = names for containers by purpose/size = char, int, double...etc

Memory = the place where data is stored

Variable = the act of assigning a name to a memory space that stores data

int val = 3 : Declaration = data type int comes
val = val_a + val_b : Usage = the data type is not needed again, just the variable name

Understanding the relationship between data types, memory, and variables is the foundation of everything that follows in C/C++.

This English version was translated by Claude.

친절한 찰쓰씨
Written by
친절한 찰쓰씨

Pleasant Charles — UI/UX researcher at AIT. Keeping notes on design, planning, and slow days here since 2010.