Analyze the following code.
```
#include
using namespace std;
int main()
{
char *p;
cout << "Enter a string: ";
cin >> p;
cout << p << endl;
return 0;
}
```
a. If you run the program and enter abc, unpredictable characters will be displayed.
b. If you run the program and enter abc, abc will be displayed.
c. If you run the program and enter abc, nothing will be displayed. The program runs without errors.
d. If you run the program and enter abc, a runtime error will occur, because p is used without being initialized.
d. If you run the program and enter abc, a runtime error will occur, because p is used without being initialized.
You might also like to view...
A setting that refers to the order in which the focus moves from field to field
a. Auto-increment order b. Tab order c. Focus order
The university you work for allows students to purchase items over the intranet using student ID cards that can be loaded with credits. Recently some students got the system to put unearned credits on their cards. The security team wants to use a protocol analyzer to address this issue. How could such software be useful in this scenario?
A. to fuzz the application for errors B. to reverse engineer the transaction systems protocol C. to block transactions from specific students D. to create a honeypot to lure and identify the guilty students