mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2026-02-04 03:13:42 +08:00
Update
This commit is contained in:
25
algorithm_interview_course/chapter_two/section_4.cpp
Normal file
25
algorithm_interview_course/chapter_two/section_4.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
/* ************************************************************************
|
||||
> File Name: section_4.cpp
|
||||
> Author: sunxiuyang
|
||||
> Mail: sunxiuyang04@gmail.com
|
||||
> Created Time: Tue Feb 18 23:34:08 2020
|
||||
> Description:
|
||||
************************************************************************/
|
||||
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
|
||||
struct node{
|
||||
int num;
|
||||
char cha;
|
||||
}st;
|
||||
|
||||
int main() {
|
||||
int a[100];
|
||||
char b[100];
|
||||
cout << sizeof(int) << endl;
|
||||
cout << sizeof(char) << endl;
|
||||
cout << sizeof(a) << endl;
|
||||
cout << sizeof(b) << endl;
|
||||
cout << sizeof(st) << endl;
|
||||
}
|
||||
Reference in New Issue
Block a user