Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Tài liệu HOT
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Lecture Introduction to computer and programming - Lecture No 15
TAILIEUCHUNG - Lecture Introduction to computer and programming - Lecture No 15
This chapter examines some more advanced concepts related to process management, which are found in a number of contemporary operating systems. We show that the concept of process is more complex and subtle than presented so far and in fact embodies two separate and potentially independent concepts: one relating to resource ownership and another relating to execution. | CSC103: Introduction to Computer and Programming Lecture No 15 Previous lecture Menu driven program using functions Function call by value Scope of variable Local Global Today’s lecture outline Pointer fundamental & operator * operator Pointer declaration Pointer type Simple variable declaration Consider the declaration, This declaration tells the C compiler to: Reserve space in memory to hold the integer value Associate the name i with this memory location Store the value 3 at this location Memory i 3 65520 Value at location Location name Location number or address Address – a class room example 1 2 3 4 5 4 3 2 1 Address of this chair (2, 3) 2nd row and 3rd column (5, 2) A program to print memory address Output of program Address of i = 65520 Value of i = 3 & used in this statement is C’s ‘address of’ operator Go to program Cont. Memory f 70020 Value at location Location name Location number or address ch a 85690 * operator The pointer operator available in C is *, called ‘value at address’ operator It gives the value stored at a particular address The ‘value at address’ operator is also called ‘indirection’ operator Example program i 3 85065 Program output Address of i = 85065 Value of i = 3 Value of i = 3 * (&i) = *(85065) = 3 Go to program Cont. We can store the address of variable i in a variable say p, . p = &i; p is not an ordinary variable It is a special variable that contains address of other variable Compiler also provide a space in memory for p like it do for other variables Cont. Memory p 3 i 85065 76950 p = &i; p = 85065 85065 i’s value is 3 and p’s value is i’s address Pointer declaration *p 3 i 85065 76950 85065 *(&i) =*(85065) = 3 85065 85065 76950 85065 3 3 3 *p = *(85065) = 3 Go to program Points to remember Pointers are variables that contain a memory address as their value In other words, a pointer variable contains a memory address that points to another variable * operator means “value at address” & operator means “address of” .
Nhật Nam
61
1
pptx
Báo lỗi
Trùng lắp nội dung
Văn hóa đồi trụy
Phản động
Bản quyền
File lỗi
Khác
Upload
Tải xuống
đang nạp các trang xem trước
Bấm vào đây để xem trước nội dung
Tải xuống
TÀI LIỆU LIÊN QUAN
Pro PHP and iQuery
401
104
0
Principles of Programming Languages
166
128
0
Lecture Programming languages (2/e): Chapter 12b - Tucker, Noonan
14
98
0
Discovering Computers - Chapter 13: Programming Languages and Program Development
51
100
0
Beginning Algorithms
591
111
0
PHP Game Programming
377
113
0
LAND OF LISP
508
81
0
Lecture Programming languages (2/e): Chapter 14a - Tucker, Noonan
18
86
0
Lecture Programming languages (2/e): Chapter 15a - Tucker, Noonan
20
86
0
Lecture Programming languages (2/e): Chapter 12d - Tucker, Noonan
38
92
0
TÀI LIỆU XEM NHIỀU
Một Case Về Hematology (1)
8
462079
59
Giới thiệu :Lập trình mã nguồn mở
14
23851
75
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
11129
537
Câu hỏi và đáp án bài tập tình huống Quản trị học
14
10374
458
Phân tích và làm rõ ý kiến sau: “Bài thơ Tự tình II vừa nói lên bi kịch duyên phận vừa cho thấy khát vọng sống, khát vọng hạnh phúc của Hồ Xuân Hương”
3
9655
106
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8657
1150
Tiểu luận: Nội dung tư tưởng Hồ Chí Minh về đạo đức
16
8363
423
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7947
2250
Đề tài: Dự án kinh doanh thời trang quần áo nữ
17
6983
260
Giáo trình Tư tưởng Hồ Chí Minh - Mạch Quang Thắng (Dành cho bậc ĐH - Không chuyên ngành Lý luận chính trị)
152
6776
1611
TỪ KHÓA LIÊN QUAN
Kỹ thuật lập trình
Programming languages
Computing systems
C programming language
Introduction to computer
Operating system software
Introduction to computer
experience in programming
software engineering
programming languages
computer programming
programming tips
programming experience
code programming
design tips
programming documentation
programming skills
the Ruby programming document
methods Ruby programming language
Lecture Programming languages
Ngôn ngữ lập trình
Imperative programming
Imperative languages
Dynamic allocation
Discovering Computers
Program Development
Low Level Languages
Procedural Languages
Object Oriented Programming Languages
java programming language C + +
C programming
computer software
computer engineering
computer programming language PHP
Functional programming
Functional programming models
Lambda calculus
Logic programming
Logic programming in prolog
Prolog program elements
Scripting languages
Lecture Introduction to computing
Bài giảng Nhập môn máy tính
Introduction to computing
Role of programming languages
Android Programming
Java
programming code
Procedural abstraction
Data structures
Matrix multiplication
Object oriented programming
Abstract data types
The object model
Object oriented language
Represent polynomials
Symbolic differentiation
Mixed language
Scripting language
Semantics of clite
List comprehensions
Practical aspects of prolog
Natural language processing
Event driven programming
Event driven control
Event handling
Java applet
Tic Tac Toe
TÀI LIỆU MỚI ĐĂNG
Giáo án mầm non chương trình đổi mới: Đề tài: Ôn xác định vị trí trên – dưới, trước- sau của đối tượng khác.
8
430
3
01-07-2024
Động cơ đốt trong và máy kéo công nghiêp tập 1 part 7
23
288
0
01-07-2024
Báo cáo nghiên cứu khoa học " KẾT QUẢ NGHIÊN CỨU BƯỚC ĐẦU VỀ THIÊN ĐỊCH CHÂN KHỚP TRÊN CÂY THANH TRÀ Ở THỪA THIÊN HUẾ "
7
215
2
01-07-2024
Bơm máy nén quạt trong công nghiệp part 8
20
232
3
01-07-2024
Data Structures and Algorithms - Chapter 8: Heaps
41
148
1
01-07-2024
báo cáo hóa học:" Increased androgen receptor expression in serous carcinoma of the ovary is associated with an improved survival"
6
126
1
01-07-2024
Báo cáo nghiên cứu nông nghiệp " Biofertiliser inoculant technology for the growth of rice in Vietnam: Developing technical infrastructure for quality assurance and village production for farmers "
12
113
0
01-07-2024
ĐỀ THI THỬ ĐẠI HỌC 2009 – THPT ĐÔNG SƠN 1 – LẦN 2 – MÔN TOÁN
8
124
1
01-07-2024
Thương hiệu sản phẩm làng nghề: Đã ít, lại thiếu tính cạnh tranh
5
141
0
01-07-2024
Chương 10: Các phương pháp tính quá trình quá độ trong mạch điện tuyến tính
57
203
5
01-07-2024
TÀI LIỆU HOT
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7947
2250
Giáo trình Tư tưởng Hồ Chí Minh - Mạch Quang Thắng (Dành cho bậc ĐH - Không chuyên ngành Lý luận chính trị)
152
6776
1611
Ebook Chào con ba mẹ đã sẵn sàng
112
4025
1302
Ebook Tuyển tập đề bài và bài văn nghị luận xã hội: Phần 1
62
5712
1196
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8657
1150
Giáo trình Văn hóa kinh doanh - PGS.TS. Dương Thị Liễu
561
3649
667
Giáo trình Sinh lí học trẻ em: Phần 1 - TS Lê Thanh Vân
122
3849
601
Giáo trình Pháp luật đại cương: Phần 1 - NXB ĐH Sư Phạm
274
4412
546
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
11129
537
Bài tập nhóm quản lý dự án: Dự án xây dựng quán cafe
35
4299
483
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.