Pointers in C

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

assign address of some variable

initializing pointer variables (1)

incrementing a pointer

moves the pointer to the next memory address

decrementing a pointer

moves the pointer to the previous memory address

function pointers

have the capability to point to a function

data_type *pointer name

declaring pointer variables

increment (++) and decrement (--)

operations used on pointers

*p = *q

pointer assigning its value to another pointer

call-by-reference

pointer to the actual parameter

name of an array

pointer to the first element of an array

%p

print address of variable

address operator (&)

returns the memory address of a variable

pointer

special variable capable of storing address of the object it wants to point to

pointing to

store the base address of the object

indirection operator (*)

value of operator, deference operator; used to access the value stored at the location pointed by the pointer


Kaugnay na mga set ng pag-aaral

Chapter 38: Caring for Clients With Cerebrovascular Disorders

View Set

teas - science practice questions

View Set

Applications with Standard Normal Distribution Assignment and Quiz 80%

View Set

Chapter 30 - China: The World's Most Populous Country

View Set

DECA Finance Cluster Exam #1 Corrections

View Set