• Register
2 votes
240 views

Problem:

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

5 3 2
7,520 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
14,580 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,940 points

Related questions

0 votes
2 answers 31 views
31 views
Problem: A function may return a pointer, but the programmer must ensure that the pointer ________?
asked Apr 12, 2020 ArifulIslam 7.5k points
0 votes
1 answer 16 views
16 views
Problem: What Performance counter tracks the percentage of time the hard drive is in use?
asked Aug 4, 2020 ArifulIslam 7.5k points
0 votes
2 answers 74 views
74 views
Problem: The Windows shell is responsible for interacting with hardware? True False
asked Apr 12, 2020 ArifulIslam 7.5k points
0 votes
1 answer 148 views
148 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
1 answer 42 views
42 views
Problem: Declare a reference variable of type File named myFile?
asked Apr 6, 2020 ArifulIslam 7.5k points
1 vote
2 answers 178 views
178 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 7.5k points
0 votes
1 answer 5 views
5 views
Problem: Can anyone help me out? If anyone here who expert in computer then please answer me.
asked Mar 26 niyatiry 2.9k points
0 votes
1 answer 143 views
143 views
Problem: Data modeling may be the most important part of the systems development process because:?
asked Jul 22, 2020 kTyson 14.6k points
0 votes
1 answer 14 views
14 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 59 views
59 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 7.5k points