06contro - 1 Con tr anhtt@it-hut.edu.vn char ch = A; A...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

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

Unformatted text preview: 1 Con tr anhtt@it-hut.edu.vn char ch = A; A 0x2000 ch: Gi tr c a bi n ch a ch b nh c a bi n ch a ch b nh c a bi n Ton t & Tr v a ch b nh c a m t i t ng &ch tr v gi tr 0x2000 char ch = A; A 0x2000 Con tr ch 0x1FFF 0x2000 0x2001 0x2002 0x1FFE etc B 0x2000 chPtr 0x3A15 M t bi n c th l u gi tr l a ch b nh c a m t bi n khc Khai bo con tr Khai bo con tr l m t bi n Ch a m t a ch b nh Th ng tr t i m t ki u d li u xc nh cPtr: char* cPtr; V d 1 : 0x2004 C th ch a a ch c a bi n ki u char Khai bo con tr (ti p) int * numPtr; float * xPtr; V d : C th t o con tr n bi n c ki u d li u b t k int *numPtr1, *numPtr2; float *xPtr, *yPtr; V d : M t bi n con tr lun c khai bo i km v i ton t * 2 Tham chi u V d 1 : char c = A; char *cPtr; cPtr = &c; Xc l p a ch c a c cho con tr cPtr A c: 0x2000 cPtr: 0x2004 0x2000 Dng ton t & xc l p a ch tham chi u cho con tr Ch v con tr in gi tr a ch l u b...
View Full Document

This note was uploaded on 04/09/2012 for the course ECON 102 taught by Professor Abc during the Spring '12 term at Univ. of Massachusetts Med. School.

Page1 / 4

06contro - 1 Con tr anhtt@it-hut.edu.vn char ch = A; A...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online