Given the declarations below, write a code fragment that allocates a nameless variable for pointer p1 to point to.

```
int *p1, *p2;
```


```
p1 = new int;
```

Pointer p1 can be used to refer to a variable, so we can use the operator new to create variables that have no identifiers to serve as name, they have only addresses. We assign the address to the pointer variable p1.

Computer Science & Information Technology

You might also like to view...

With a Web app, much of the program code for the software runs locally on a computer, instead of running on a remote computer connected to the Internet or other computer network.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A(n) ____________________, like the one in the accompanying figure, is text and graphics printed at the top of each page in a document.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

In PL/SQL what is a Cursor? When do we use an explicit Cursor? What do you do when you declare a Cursor?

What will be an ideal response?

Computer Science & Information Technology

SQL is an example of a ________ category programming language.

A. 2GL B. 3GL C. 4GL D. 5GL

Computer Science & Information Technology