This slide will help you to learn Pointer assignments, Pointer arithmetic,Pointer comparisons, Pointers & arrays, Arrays of pointers, Multiple indirection
This slide will help you to learn dynamic memory allocation, new operator, delete operator, assigning value to pointer, pointer & constant, pointer and constant, constant pointer.
c++ pointers by Amir Hamza Khan (SZABISTIAN)Ameer Hamxa
This slides will help you to learn pointers in c++ and i have put in some programs in this slides to help beginners in c++ and also you can use it as your own presentation lol ;)
follow me on facebook https://www.facebook.com/Ameerii132
and you are welcome for questions and quirries
In computer science, a pointer is a programming language object, whose value refers to (or "points to") another value stored elsewhere in the computer memory using its memory address. A pointer references a location in memory, and obtaining the value stored at that location is known as dereferencing the pointer.
general use of pointer
what is pointer in c language
uses is pointer in c language
representation of pointer in c language
syantax of pointer in c language
program of pointer in c language
A cluster is an accumulation of factors of a similar sort that are alluded to through a typical name. A particular component in a cluster is gotten to by a file. In C, all clusters comprise of coterminous memory areas.
This slide will help you to learn dynamic memory allocation, new operator, delete operator, assigning value to pointer, pointer & constant, pointer and constant, constant pointer.
c++ pointers by Amir Hamza Khan (SZABISTIAN)Ameer Hamxa
This slides will help you to learn pointers in c++ and i have put in some programs in this slides to help beginners in c++ and also you can use it as your own presentation lol ;)
follow me on facebook https://www.facebook.com/Ameerii132
and you are welcome for questions and quirries
In computer science, a pointer is a programming language object, whose value refers to (or "points to") another value stored elsewhere in the computer memory using its memory address. A pointer references a location in memory, and obtaining the value stored at that location is known as dereferencing the pointer.
general use of pointer
what is pointer in c language
uses is pointer in c language
representation of pointer in c language
syantax of pointer in c language
program of pointer in c language
A cluster is an accumulation of factors of a similar sort that are alluded to through a typical name. A particular component in a cluster is gotten to by a file. In C, all clusters comprise of coterminous memory areas.
Pointers in C language is a variable that stores/points the address of another variable. A Pointer in C is used to allocate memory dynamically i.e. at run time.
Hi friends these array series presentation gives you clear cut knowledge in array in c++ programming, array in c++ tutorial, array in c++ syntax, array in c++ example
in this presentation i will explain you about Statements & block, If Else, ElseI f, Switch, While Loop, For loop, Do while loop, Break & continue in c++
This is the first part of the linux installation on text mode.This presentation contains the snapshot of each and every step of text mode linux installation
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
2. Pointer assignments
Pointer arithmetic
Pointer comparisons
Pointers & arrays
Arrays of pointers
Multiple indirection
Pointers to function
Dynamic allocations
3. We know how to point a variable .
In this example I will show how to point a
variable from two pointers.
You must pass the vaddres1
to vAddress2.Because we
passed the address of
variable to vaddress1 not to
vAddress2
4. There are only two arithmetic operations that
you may use on pointers:
◦ Addition
◦ Subtraction
But you can do all operation on pointer’s
value as:
◦ Addition
◦ Subtraction
◦ Multiplication
◦ division
5. There are two type of comparison of pointers
◦ In between pointer = this is the comparison held
between the addresses they hold
If (p1>p2)
◦ In between pointer value = here we comparing
between the values they hold.
If (*p1>*p2)
6.
7.
8. you can direct a pointer to hold the array's address as
we do for a normal variable.
As I told you array is a sequence of similar type of
data type.
To hold the array's address when you direct the
pointer to hold array's address it holds the first’s of
that array address only.
To get the address of each element of array we have
to add the exact index number of that element. how
can we do that? we can do that with help of a loop or
directly adding the index’s number.
9. Int array[5]; Int array[5];
Int *Parray; Int *Parray;
Parray = array; Parray = &array[0];
10.
11.
12.
13. We already learned array of integers, array of
floats. As like those we have one type of array i.e.
Arrays of pointer.
Arrays of pointer will only hold a bunch of
addresses.
These addresses may be addresses of arrays or
may be addresses of different variables.
As for a integer type array compiler allocates
sequence of memory to store hold addresses.
14. When we create pointer array we have to
initialize the each element to direct to a
address.
The address may be a address of a variable or
an array. But they must be similar data type
of pointer array
int var1 = 400,var2 = 600;
int *arrpo[2];
arrpo[0] = &var1;
arrpo[1] = &var2;
15.
16.
17. We can say it point to pointer. It means we can
hold the address of a pointer as we hold the
address of the variable.
So when a pointer points to the address of a
variable we told it indirection. When another
pointer points to that pointer which points to a
variable is called multiple indirection.
int var;
int *fPointer,**spointer;
fpointer = &var;
spointer = &fpointer;
18. Pointer02 Pointer01 variable
• Address • Address • Value
19. When we have a pointer to a pointer the
pointer which will point to variable. We will
confuse with (*), (**) and (&). So do not
confuse with these.
var = gives value stored in var
int var; *fpointer = gives value stored in var
int *fPointer,**spointer; **spointer = gives value stored in var
fpointer = &var;
spointer = &fpointer;
*spointer = gives address of fpointer
&spointer = gives address of spointer
&fpointer = gives address of fpointer
&var = gives address of variable
20.
21. Even though a function is not a variable, it still
has a physical location in memory that can be
assigned to a pointer.
This address is the entry point of the function
and it is the address used when the function is
called.
Once a pointer points to a function, the function
can be called through that pointer.
Function pointers also allow functions to be
passed as arguments to other functions.