Return 키워드

#include <iostream>
#include <ppltasks.h>

int Add(int a, int b)
{
		return a + b;
}

int main()
{
	int a = 5;
	int b = 6;

	int ret = Add(a, b);

	return 0;
}

숫자채우기 연습

Untitled

Untitled

포인터 타입 변수

메모리에 위치를 가리키는(주소값) 을 저장할수 있는 변수

기본적인 사용과 16진수의 주소값

#include <iostream>

int main() 
{

	int n= 0;
	void* ptr = &n;

	std::cout << ptr;
	// 000000AA32D9FC64 
	return 0;
}

포인터 변수에는 해당 주소 위치로 접근할수 있는 특별한 연산이 있다.

Untitled