-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0011.cpp
More file actions
26 lines (19 loc) · 732 Bytes
/
0011.cpp
File metadata and controls
26 lines (19 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <iostream>
/*====================================
* eXcript.com
* fb.com/eXcript
* ====================================*/
using namespace std;
int main() {
int varInt = 100;
char c = 'r';
double pFlutuante = 5.99;
cout << "O valor da variavel varInt é: " << varInt << endl;
cout << "O valor da variavel c é: " << c << endl;
cout << "O valor da variavel pFlutuante é: " << pFlutuante << endl;
cout << endl;
cout << "Memória da variavel varInt: " << sizeof(varInt) << "bytes" << endl;
cout << "Memória da variavel c: " << sizeof(c) << "bytes" << endl;
cout << "Memória da variavel pFlutuante: " << sizeof(pFlutuante) << "bytes" << endl;
return 0;
}