06장_배열과%20포인터

Cpp 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 50}; cout << " a = " << a << "\n"; cout << " &a[0] = " << &a[0] << "\n"; } - 17 - 3) 함수의 매개변수로서의 배열 IT COOKBOOK - 18 - [실습하기 6-9] 배열명과 + 연산자의 관계 알아보기 [예제 6-9] 6_9.cpp 01 02 03 04 05 06 07 08 09 10 11 #include<iostream> using namespace std; void main() { int a[5] = {10,20,30,40,50}; cout<<" a => "<<a <<" &a[0]=> "<<&a[0]<<"\n" ; cout<<" a+1 => "<<a+1 <<" &a[1]=> "<<&a[1]<<"\n" ; cout<<" a+2 => "<<a+2 <<" &a[2]=> "<<&a[2]<<"\n" ; cout<<" a+3 => "<<a+3 <<" &a[3]=> "<<&a[3]<<"\n" ; cout<<" a+4 => "<<a+4 <<" &a[4]=> "<<&a[4]<<"\n" ; } - 19 - IT COOKBOOK [실습하기 6-10] 포인터를 사용해 배열의 각 원소 출력하기 IT COOKBOOK [예제 6-10] 6_10.cpp 01 02 03 04 05 06 07 08 09 #include<iostream.h> void main() { int a[5] = {10,20,30,40,50}; cout << " a[0] => " << a[0] << " *a => "...
View Full Document

This document was uploaded on 01/19/2014.

Ask a homework question - tutors are online