Bit-Field는 변수들을 비트 단위로 지정해 구조체(클레스)의 멤버변수로 저장하는 방식이다. 다음과 같이 ( : )를 사용해 나타낼 수 있다.bit-field에 이름 없는 변수를 사용해 새로운 바이트에서 값을 시작하도록 할 수 있다.특징bit-field 구조체의 크
C/C++에서 메모리에 올라가는 프로그램의 구조는 크게 스택, 힙, 데이터, 코드 영역으로 나뉜다. 이에 대해 정리한 내용이다.프로그램의 실제 코드가 저장되는 영역이다.텍스트 영역는 주로 읽기 전용이고 공유 가능하다는 특징이 있다.읽기 전용의 장점은 프로그램이 급작스럽
람다 표현식(Lambda expression) C++의 기능 중에는 람다 표현식이라는 것이 있다. C++ 레퍼런스의 설명에는 다음과 같이 적혀있다. > "클로져(closure)을 생성하는 범위 내의 변수를 캡쳐할 수 있는 이름 없는 함수객체" 클로져는 뭐고, 캡