Which of the following statements is not valid C++ code?

A) int ptr = &num1;
B) int ptr = int *num1;
C) float num1 = &ptr2;
D) All of the above are valid.
E) All of the above are invalid.


E) All of the above are invalid.

Computer Science & Information Technology

You might also like to view...

Based on what it returns, what would be a better name for the function "Mystery" in the following program?

``` Private Sub btnDisplay_Click(...) Handles btnDisplay.Click Dim sentence As String, result As String sentence = "Socrates is a man." result = Mystery(sentence) txtBox.Text = result End Sub Function Mystery(sentence As String) As String Dim position As Integer position = sentence.IndexOf(" ") Return sentence.Substring(0, position) End Function ``` (A) FirstWord (B) LastWord (C) FirstLetter (D) LastLetter (E) DoesNothing

Computer Science & Information Technology

Small data files that are deposited on a user's hard disk when they visit a website are called ________.

A. cache B. cookies C. proxies D. codes

Computer Science & Information Technology

To create a query using multiple tables, a ________ field is required

Fill in the blank(s) with correct word

Computer Science & Information Technology

The process of ________ will make the encrypted information readable again

Fill in the blank(s) with correct word

Computer Science & Information Technology