• Register
2 votes
63 views

Problem:

A function may return a pointer, but the programmer must ensure that the pointer ________?

5 3 2
5,640 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution:

Is pointing to an object that is still valid after the return of the function

6 4 2
10,860 points
0 votes
In computer science, a pointer is a programming language object that stores a memory address. This can be that of another value located in computer memory, or in some cases, that of memory-mapped computer hardware. Some C programming tasks are performed more easily with pointers, and other tasks, such as dynamic memory allocation, cannot be performed without using a pointer. In programming, we basically use pointers to store the other variable's address. A pointer variable is declared with a '*' before it. int *a.
15 10 7
8,210 points

Related questions

0 votes
2 answers 18 views
18 views
Problem: A function may return a pointer, but the programmer must ensure that the pointer ________?
asked Apr 12, 2020 ArifulIslam 5.6k points
0 votes
1 answer 36 views
36 views
Problem: Declare a reference variable of type File named myFile?
asked Apr 6, 2020 ArifulIslam 5.6k points
1 vote
2 answers 144 views
144 views
Problem: You have a workstation running Windows 10, 64-bit edition. A local printer connected to a USB port is shared so that other users can print to that printer. Users running 32-bit versions of Windows report that they can't install the driver for the shared ... printer to run 32-bit emulation mode. • Move the printer to a computer running a 32-bit operating system and share the printer.
asked Mar 23, 2020 ArifulIslam 5.6k points
0 votes
1 answer 11 views
11 views
Problem: What Performance counter tracks the percentage of time the hard drive is in use?
asked Aug 4, 2020 ArifulIslam 5.6k points
0 votes
2 answers 61 views
61 views
Problem: The Windows shell is responsible for interacting with hardware? True False
asked Apr 12, 2020 ArifulIslam 5.6k points
0 votes
1 answer 118 views
118 views
Problem: I am little bit confused, which statement is true? ipv4 and ipv6 use the same packet format? True False
asked Feb 19, 2020 maddi86 5.4k points
0 votes
2 answers 21 views
21 views
Problems: I am new to computers, I need help, can anyone help me? A hard drive can only have one single root directory? -True -False
asked Feb 13, 2020 maddi86 5.4k points
0 votes
1 answer 9 views
9 views
Problem: A user of a database such as that pictured in the accompanying figure refers to a file as what?
asked Aug 4, 2020 LizzyM 6.1k points
0 votes
1 answer 42 views
42 views
Problem: You should not define a class field that is dependent upon the values of other class fields: A) in order to avoid having stale data B) because it is redundant C) because it should be defined in another class D) in order to keep it current
asked Aug 4, 2020 ArifulIslam 5.6k points
1 vote
1 answer 19 views
19 views
Problem: A ________ describes the data and relationships that will be stored in a database?
asked Mar 23, 2020 ArifulIslam 5.6k points