1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ratelena [41]
3 years ago
14

Write a function that dynamically allocates a block of memory and returns a char pointer to the block. The function should take

an integer argument that is the amount of memory to be allocated. If the new operator cannot allocate the memory, the function should return a null pointer.
Computers and Technology
1 answer:
sveticcg [70]3 years ago
7 0

Answer:

#include<new>

using std: :bad_alloc;

char* function ( int size )

{

   try

   {

           char *p = new char [ size ] ;

           return p ;

    }

    catch ( bad_alloc )

    {

           return NULL;

    }

}    //     end function

You might be interested in
Memories Record Players Company has seen most of its competition slip away, and it now holds 95 percent of the market share for
AlladinOne [14]

Answer:

Decline Stage

Explanation:

The decline stage is the stage after attaining maturity in the product life cycle. At this point, the product begins to lose its value in sales as a result of poor acceptance or an entry of a better substitute for it. This gives rise to loss in profit and a gradual halt in demand.

4 0
3 years ago
Your Windows PC has an AMD processor installed that includes AMD-V technology and the motherboard fully supports this processor.
Anvisha [2.4K]

Answer:

Option C: Windows Virtual PC is the correct answer.

Explanation:

The virtualization program for Microsoft Windows is given by Windows Virtual PC. As discussed it has an AMD processor installed that includes AMD-V technology and the motherboard fully supports this processor.

The superseded version of Windows virtual PC is Hyper-V.  It is the most capable version of Microsoft hypervisor you can install on this machine, provided the computer meets all the other requirements.

All other options are wrong as the virtualbox is not considered as the Microsoft hypervisor therefore can't be installed. Similarily, the hypervisor named as Windows XP mode is not so capable that it could meet all requirements. In the end, the Parallel Desktops can not be run on the machines as they dont come under the Microsoft hypervisor category.

I hope it will help you!

7 0
3 years ago
Drag the tiles to the correct boxes to complete the pairs. Match the items with their respective descriptions.
WARRIOR [948]

1 protect a worksheet

2 drag the worksheet tab

3 rename worksheet

4 navigate between worksheet


7 0
4 years ago
What questions do they ask for the 08.03 Discussion- Based Assesment in Drivers Ed?? Thanks.
mel-nik [20]

When should my headlights be turned on?

Why shouldn't one take medication before driving?

Why must you use a turn signal?

I'm not sure about that last one because I forgot but I think its right.

6 0
4 years ago
A _____ is a description that involves "telling" the database management system (DBMS) the logical and physical structure of the
alexandr402 [8]

Answer:

the right answer to the question is schema

Explanation:

The database schema of a database is its structure described in a formal language supported by the database management system (DBMS). The term "schema" refers to the organization of data as a blueprint of how the database is constructed

5 0
3 years ago
Other questions:
  • Can somebody help me?
    11·1 answer
  • How do you take a picture on this app
    10·1 answer
  • Hey so if an instagram account has an email attached to it but a person no longer has access to that email, how do they get back
    10·1 answer
  • A common use-case for dictionaries is to store word counts. Let's modify our program below to store the count for each unique wo
    9·1 answer
  • Which concept often comes in conflict with privacy rights?
    14·1 answer
  • Files and folders in UNIX can be removed using the
    8·1 answer
  • The different types of variation of genes are called.
    8·1 answer
  • Which feature should be used prior to finalizing a presentation to ensure that audience members with disabilities will be able t
    13·2 answers
  • Write a Python statement that displays the value referenced by the number variable formatted as1,234,567.5
    9·1 answer
  • What is alternative name of home page<br><br>​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!