Write a short program that contains statements to output the values of a variable that you define but neither initialize nor assign. Discuss the output you get.

What will be an ideal response?


```
#include
using namespace std;
int main()
{
int uninitialized;
cout << uninitialized << endl;
return 0;
}
```

Computer Science & Information Technology

You might also like to view...

The layout view selector allows you to move the whole table at one time

Indicate whether the statement is true or false

Computer Science & Information Technology

Word templates are available on your computer and online

Indicate whether the statement is true or false

Computer Science & Information Technology

The word shown in bold is used correctly in the following sentence.How can we ensure that all the doctors get the message??

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

Computer Science & Information Technology

It is a good programming practice to ensure that a subscript to an array does not fall below zero, causing a(n) ____.

A. array dump B. runtime error C. logic error D. compiler error

Computer Science & Information Technology