Pointers in C

अब 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


संबंधित स्टडी सेट्स

Chapter 38: Caring for Clients With Cerebrovascular Disorders

View Set

teas - science practice questions

View Set

chapter 18 potatoes and 28 food prep and garnish

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