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.

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. 

Answer:
#include <iostream>
using namespace std;
int main()
{
  int uninitialized;
  cout << uninitialized << endl;
  return 0;
}

Comments

Popular posts from this blog

What is JAD and how are users involved? What are advantages and disadvantages of JAD?

Describe at least three of the general information skills essential for all business careers.

Why do firms need to invest in net working capital?