summaryrefslogtreecommitdiff
path: root/3p9.cpp
blob: c722e452f079f070f33c70f88197c6a754889c8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <iostream>

/*
 *
 * 3.9
 *
 * Program does compile but not sure if valid. It has a size of 0 so its probably undefined behavior.
 */

using std::string;
using std::cout;
using std::cin;
using std::cerr;
using std::clog;
using std::endl;
int main () {

	string s;
	auto Size = s.size();
	cout << Size << endl;
	cout << s[0] << endl;
	return 0;
}