-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecho.cpp
46 lines (42 loc) · 1.41 KB
/
echo.cpp
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) 2021. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
// Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
// Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
// Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
// Vestibulum commodo. Ut rhoncus gravida arcu.
//#include <iostream>
#include <stdio.h>
int main() {
// using namespace std;
//
// int carrots; // declare an integer variable
//
// // carrots = 25;
// cout << "How many carrots do you have?" << endl;
//
// cin >> carrots;
// cout << "Here are tow more.";
// carrots = carrots + 2;
// cout << "I have ";
// cout << carrots;
// cout << " carrots.";
// cout << endl;
// carrots = carrots - 1;
// cout << "Crunch, crunch. Now I have " << carrots << " crrots." << endl;
//
// int a = 65;
// int addr;
// const double pi = 3.14;
// double *ptr = π
// const double *cptr = π
// double dval = 3.14;
// cptr = &dval;
// addr = 0x0012ff7c;
// printf("0x%p, 0x%p, 0x%p\n", &a, addr, (int*)addr);
// printf("%d,%d,%d\n", a, *&a, *(int *)addr); // 65 65 0x0012ff7c
// typedef char *pstring;
// const pstring cstr = 0;
// const pstring *ps;
// printf("-------\n");
// printf( "cstr: %c\n", *cstr);
printf("sizeof(unsigned char) = %lu",sizeof(unsigned char));
}