SlideShare a Scribd company logo
CS50 2022 - Lecture 2 - Arrays.pptx
U I J T X B T D T 5 0
CS50 2022 - Lecture 2 - Arrays.pptx
#include <stdio.h>
int main(void)
{
printf("hello, worldn");
}
01111111 01000101 01001100 01000110 00000010 00000001 00000001 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000010 00000000 00111110 00000000 00000001 00000000 00000000 00000000
10110000 00000101 01000000 00000000 00000000 00000000 00000000 00000000
01000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
11010000 00010011 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 01000000 00000000 00111000 00000000
00001001 00000000 01000000 00000000 00100100 00000000 00100001 00000000
00000110 00000000 00000000 00000000 00000101 00000000 00000000 00000000
01000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
01000000 00000000 01000000 00000000 00000000 00000000 00000000 00000000
01000000 00000000 01000000 00000000 00000000 00000000 00000000 00000000
11111000 00000001 00000000 00000000 00000000 00000000 00000000 00000000
11111000 00000001 00000000 00000000 00000000 00000000 00000000 00000000
00001000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000011 00000000 00000000 00000000 00000100 00000000 00000000 00000000
00111000 00000010 00000000 00000000 00000000 00000000 00000000 00000000
...
make hello
./hello
clang hello.c
./a.out
clang -o hello hello.c
./hello
#include <stdio.h>
int main(void)
{
printf("hello, worldn");
}
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
clang -o hello hello.c -lcs50
./hello
make hello
./hello
compiling
preprocessing
compiling
assembling
linking
preprocessing
compiling
assembling
linking
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
/usr/include
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
string get_string(string prompt);
#include <stdio.h>
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
string get_string(string prompt);
#include <stdio.h>
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
string get_string(string prompt);
int printf(string format, ...);
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
...
string get_string(string prompt);
int printf(string format, ...);
...
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
preprocessing
compiling
assembling
linking
...
string get_string(string prompt);
int printf(string format, ...);
...
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
...
main: # @main
.cfi_startproc
# BB#0:
pushq %rbp
.Ltmp0:
.cfi_def_cfa_offset 16
.Ltmp1:
.cfi_offset %rbp, -16
movq %rsp, %rbp
.Ltmp2:
.cfi_def_cfa_register %rbp
subq $16, %rsp
xorl %eax, %eax
movl %eax, %edi
movabsq $.L.str, %rsi
movb $0, %al
callq get_string
movabsq $.L.str.1, %rdi
movq %rax, -8(%rbp)
movq -8(%rbp), %rsi
movb $0, %al
callq printf
...
...
main: # @main
.cfi_startproc
# BB#0:
pushq %rbp
.Ltmp0:
.cfi_def_cfa_offset 16
.Ltmp1:
.cfi_offset %rbp, -16
movq %rsp, %rbp
.Ltmp2:
.cfi_def_cfa_register %rbp
subq $16, %rsp
xorl %eax, %eax
movl %eax, %edi
movabsq $.L.str, %rsi
movb $0, %al
callq get_string
movabsq $.L.str.1, %rdi
movq %rax, -8(%rbp)
movq -8(%rbp), %rsi
movb $0, %al
callq printf
...
...
main: # @main
.cfi_startproc
# BB#0:
pushq %rbp
.Ltmp0:
.cfi_def_cfa_offset 16
.Ltmp1:
.cfi_offset %rbp, -16
movq %rsp, %rbp
.Ltmp2:
.cfi_def_cfa_register %rbp
subq $16, %rsp
xorl %eax, %eax
movl %eax, %edi
movabsq $.L.str, %rsi
movb $0, %al
callq get_string
movabsq $.L.str.1, %rdi
movq %rax, -8(%rbp)
movq -8(%rbp), %rsi
movb $0, %al
callq printf
...
preprocessing
compiling
assembling
linking
...
main: # @main
.cfi_startproc
# BB#0:
pushq %rbp
.Ltmp0:
.cfi_def_cfa_offset 16
.Ltmp1:
.cfi_offset %rbp, -16
movq %rsp, %rbp
.Ltmp2:
.cfi_def_cfa_register %rbp
subq $16, %rsp
xorl %eax, %eax
movl %eax, %edi
movabsq $.L.str, %rsi
movb $0, %al
callq get_string
movabsq $.L.str.1, %rdi
movq %rax, -8(%rbp)
movq -8(%rbp), %rsi
movb $0, %al
callq printf
...
01111111010001010100110001000110
00000010000000010000000100000000
00000000000000000000000000000000
00000000000000000000000000000000
00000001000000000011111000000000
00000001000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
10100000000000100000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
01000000000000000000000000000000
00000000000000000100000000000000
00001010000000000000000100000000
01010101010010001000100111100101
01001000100000111110110000010000
00110001110000001000100111000111
01001000101111100000000000000000
00000000000000000000000000000000
00000000000000001011000000000000
11101000000000000000000000000000
00000000010010001011111100000000
00000000000000000000000000000000
00000000000000000000000001001000
...
preprocessing
compiling
assembling
linking
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = get_string("What's your name? ");
printf("hello, %sn", name);
}
hello.c
hello.c cs50.c
hello.c cs50.c stdio.c
01111111010001010100110001000110
00000010000000010000000100000000
00000000000000000000000000000000
00000000000000000000000000000000
00000001000000000011111000000000
00000001000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
10100000000000100000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
01000000000000000000000000000000
00000000000000000100000000000000
00001010000000000000000100000000
01010101010010001000100111100101
01001000100000111110110000010000
00110001110000001000100111000111
01001000101111100000000000000000
00000000000000000000000000000000
00000000000000001011000000000000
11101000000000000000000000000000
00000000010010001011111100000000
00000000000000000000000000000000
00000000000000000000000001001000
...
cs50.c stdio.c
01111111010001010100110001000110
00000010000000010000000100000000
00000000000000000000000000000000
00000000000000000000000000000000
00000001000000000011111000000000
00000001000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
10100000000000100000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
01000000000000000000000000000000
00000000000000000100000000000000
00001010000000000000000100000000
01010101010010001000100111100101
01001000100000111110110000010000
00110001110000001000100111000111
01001000101111100000000000000000
00000000000000000000000000000000
00000000000000001011000000000000
11101000000000000000000000000000
00000000010010001011111100000000
00000000000000000000000000000000
00000000000000000000000001001000
...
01111111010001010100110001000110
00000010000000010000000100000000
00000000000000000000000000000000
00000000000000000000000000000000
00000011000000000011111000000000
00000001000000000000000000000000
11000000000011110000000000000000
00000000000000000000000000000000
01000000000000000000000000000000
00000000000000000000000000000000
00101000001100100000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
01000000000000000011100000000000
00000111000000000100000000000000
00011100000000000001100100000000
00000001000000000000000000000000
00000101000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
01011100001001010000000000000000
00000000000000000000000000000000
...
stdio.c
01111111010001010100110001000110
00000010000000010000000100000000
00000000000000000000000000000000
00000000000000000000000000000000
00000001000000000011111000000000
00000001000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
10100000000000100000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
01000000000000000000000000000000
00000000000000000100000000000000
00001010000000000000000100000000
01010101010010001000100111100101
01001000100000111110110000010000
00110001110000001000100111000111
01001000101111100000000000000000
00000000000000000000000000000000
00000000000000001011000000000000
11101000000000000000000000000000
00000000010010001011111100000000
00000000000000000000000000000000
00000000000000000000000001001000
...
01111111010001010100110001000110
00000010000000010000000100000000
00000000000000000000000000000000
00000000000000000000000000000000
00000011000000000011111000000000
00000001000000000000000000000000
11000000000011110000000000000000
00000000000000000000000000000000
01000000000000000000000000000000
00000000000000000000000000000000
00101000001100100000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
01000000000000000011100000000000
00000111000000000100000000000000
00011100000000000001100100000000
00000001000000000000000000000000
00000101000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
01011100001001010000000000000000
00000000000000000000000000000000
...
00101111011011000110100101100010
01100011001011100111001101101111
00101110001101100010000000101111
01110101011100110111001000101111
01101100011010010110001000101111
01111000001110000011011001011111
00110110001101000010110101101100
01101001011011100111010101111000
00101101011001110110111001110101
00101111011011000110100101100010
01100011010111110110111001101111
01101110011100110110100001100001
01110010011001010110010000101110
01100001001000000010000001000001
01010011010111110100111001000101
01000101010001000100010101000100
00100000001010000010000000101111
01101100011010010110001000101111
01111000001110000011011001011111
00110110001101000010110101101100
01101001011011100111010101111000
00101101011001110110111001110101
00101111011011000110010000101101
01101100011010010110111001110101
01111000001011010111100000111000
00110110001011010011011000110100
...
01111111010001010100110001000110000000100000000100000001000000000000000000000000000000000000000000000
00000000000000000000000000000000001000000000011111000000000000000010000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000101000000000001000000000000000000000000000000000000000000000000000000000000000000000
00000000000001000000000000000000000000000000000000000000000001000000000000000000101000000000000000010
00000000101010101001000100010011110010101001000100000111110110000010000001100011100000010001001110001
11010010001011111000000000000000000000000000000000000000000000000000000000000000001011000000000000111
01000000000000000000000000000000000000100100010111111000000000000000000000000000000000000000000000000
000000000000000001001000...01111111010001010100110001000110000000100000000100000001000000000000000000
00000000000000000000000000000000000000000000000000000000000011000000000011111000000000000000010000000
00000000000000000110000000000111100000000000000000000000000000000000000000000000001000000000000000000
00000000000000000000000000000000000000000000001010000011001000000000000000000000000000000000000000000
00000000000000000000000000000000000000001000000000000000011100000000000000001110000000001000000000000
00000111000000000000011001000000000000000100000000000000000000000000000101000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101110000100
101000000000000000000000000000000000000000000000000...00101111011011000110100101100010011000110010111
00111001101101111001011100011011000100000001011110111010101110011011100100010111101101100011010010110
00100010111101111000001110000011011001011111001101100011010000101101011011000110100101101110011101010
11110000010110101100111011011100111010100101111011011000110100101100010011000110101111101101110011011
11011011100111001101101000011000010111001001100101011001000010111001100001001000000010000001000001010
10011010111110100111001000101010001010100010001000101010001000010000000101000001000000010111101101100
01101001011000100010111101111000001110000011011001011111001101100011010000101101011011000110100101101
11001110101011110000010110101100111011011100111010100101111011011000110010000101101011011000110100101
101110011101010111100000101101011110000011100000110110001011010011011000110100...
preprocessing
compiling
assembling
linking
compiling
decompiling
reverse engineering
01111111010001010100110001000110000000100000000100000001000000000000000000000000000000000000000000000
00000000000000000000000000000000001000000000011111000000000000000010000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000101000000000001000000000000000000000000000000000000000000000000000000000000000000000
00000000000001000000000000000000000000000000000000000000000001000000000000000000101000000000000000010
00000000101010101001000100010011110010101001000100000111110110000010000001100011100000010001001110001
11010010001011111000000000000000000000000000000000000000000000000000000000000000001011000000000000111
01000000000000000000000000000000000000100100010111111000000000000000000000000000000000000000000000000
000000000000000001001000...01111111010001010100110001000110000000100000000100000001000000000000000000
00000000000000000000000000000000000000000000000000000000000011000000000011111000000000000000010000000
00000000000000000110000000000111100000000000000000000000000000000000000000000000001000000000000000000
00000000000000000000000000000000000000000000001010000011001000000000000000000000000000000000000000000
00000000000000000000000000000000000000001000000000000000011100000000000000001110000000001000000000000
00000111000000000000011001000000000000000100000000000000000000000000000101000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101110000100
101000000000000000000000000000000000000000000000000...00101111011011000110100101100010011000110010111
00111001101101111001011100011011000100000001011110111010101110011011100100010111101101100011010010110
00100010111101111000001110000011011001011111001101100011010000101101011011000110100101101110011101010
11110000010110101100111011011100111010100101111011011000110100101100010011000110101111101101110011011
11011011100111001101101000011000010111001001100101011001000010111001100001001000000010000001000001010
10011010111110100111001000101010001010100010001000101010001000010000000101000001000000010111101101100
01101001011000100010111101111000001110000011011001011111001101100011010000101101011011000110100101101
11001110101011110000010110101100111011011100111010100101111011011000110010000101101011011000110100101
101110011101010111100000101101011110000011100000110110001011010011011000110100...
debugging
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
printf
printf
debugger
printf
debugger
rubber duck
rubber duck debugging
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
representation
types
bool
int
long
float
double
char
string
...
bool 1 byte
int 4 bytes
long 8 bytes
float 4 bytes
double 8 bytes
char 1 byte
string ? bytes
...
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
int score1 = 72;
int score2 = 73;
int score3 = 33;
CS50 2022 - Lecture 2 - Arrays.pptx
72
score1
72
score1
73
score2
72
score1
73
score2
33
score3
00000000000000000000000001001000
score1
00000000000000000000000001001001
score2
00000000000000000000000000100001
score3
int score1 = 72;
int score2 = 73;
int score3 = 33;
arrays
int scores[3];
int scores[3];
scores[0] = 72;
scores[1] = 73;
scores[2] = 33;
72
scores[0]
73
scores[1]
33
scores[2]
arguments
char c1 = 'H';
char c2 = 'I';
char c3 = '!';
CS50 2022 - Lecture 2 - Arrays.pptx
H
c1
I
c2
!
c3
72
c1
73
c2
33
c3
01001000
c1
01001001
c2
00100001
c3
string
string s = "HI!";
CS50 2022 - Lecture 2 - Arrays.pptx
H I
s
!
H
s[0]
I
s[1]
!
s[2]
H
s[0]
I
s[1]
!
s[2]
0
s[3]
72
s[0]
73
s[1]
33
s[2]
0
s[3]
H
s
I ! 0
NUL
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
string s = "HI!";
string t = "BYE!";
CS50 2022 - Lecture 2 - Arrays.pptx
H
s
I ! 0
H
s
I ! 0 B
t
Y E !
0
H
s[0]
I
s[1]
!
s[2]
0
s[3]
B
t[0]
Y
t[1]
E
t[2]
!
t[3]
0
t[4]
string words[2];
words[0] = "HI!";
words[1] = "BYE!";
H
words[0]
I ! 0 B
words[1]
Y E !
0
H
words[0][0]
I
words[0][1]
!
words[0][2]
0
words[0][3]
B
words[1][0]
Y
words[1][1]
E
words[1][2]
!
words[1][3]
0
words[1][4]
string
string.h
manual.cs50.io/#string.h
strlen
ctype.h
manual.cs50.io/#ctype.h
command-line arguments
#include <stdio.h>
int main(void)
{
...
}
#include <stdio.h>
int main(void)
{
...
}
#include <stdio.h>
int main(int argc, string argv[])
{
...
}
cowsay
exit status
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
#include <stdio.h>
int main(int argc, string argv[])
{
...
}
#include <stdio.h>
int main(int argc, string argv[])
{
...
}
#include <stdio.h>
int main(void)
{
...
}
echo $?
cryptography
encryption
input → → output
plaintext → → ciphertext
plaintext → → ciphertext
cipher
cipher
plaintext → → ciphertext
key →
HI! →
1 →
HI! → → IJ!
1 →
decryption
UIJT XBT DT50 →
-1 →
U I J T X B T D T 5 0
T I J T X B T D T 5 0
T H J T X B T D T 5 0
T H I T X B T D T 5 0
T H I S X B T D T 5 0
T H I S W B T D T 5 0
T H I S W A T D T 5 0
T H I S W A S D T 5 0
T H I S W A S C T 5 0
T H I S W A S C S 5 0
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx

More Related Content

PDF
CS50 Lecture2
PDF
CS50 Lecture2
PDF
CS50 Lecture1
PDF
CS50 Lecture1
PDF
Week1m
PDF
Week1m
PDF
CS50 Lecture3
PDF
CS50 Lecture3
CS50 Lecture2
CS50 Lecture2
CS50 Lecture1
CS50 Lecture1
Week1m
Week1m
CS50 Lecture3
CS50 Lecture3

Similar to CS50 2022 - Lecture 2 - Arrays.pptx (20)

PDF
C program
PDF
C program
TXT
Student teacher database management
TXT
Student teacher database management
PPT
Intro to c programming
PPT
Intro to c programming
PPT
Paradigmas de Linguagens de Programacao - Aula #4
PPT
Paradigmas de Linguagens de Programacao - Aula #4
PPT
Tips and Tricks of Developing .NET Application
PPT
Tips and Tricks of Developing .NET Application
DOCX
Hangman Game Programming in C (coding)
DOCX
Hangman Game Programming in C (coding)
PDF
Python
PDF
Python
PDF
9.C Programming
PDF
9.C Programming
PDF
C++ Programming - 1st Study
PDF
C++ Programming - 1st Study
C program
C program
Student teacher database management
Student teacher database management
Intro to c programming
Intro to c programming
Paradigmas de Linguagens de Programacao - Aula #4
Paradigmas de Linguagens de Programacao - Aula #4
Tips and Tricks of Developing .NET Application
Tips and Tricks of Developing .NET Application
Hangman Game Programming in C (coding)
Hangman Game Programming in C (coding)
Python
Python
9.C Programming
9.C Programming
C++ Programming - 1st Study
C++ Programming - 1st Study
Ad

Recently uploaded (20)

PDF
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
PPTX
6- Architecture design complete (1).pptx
PDF
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
PPTX
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
PDF
Urban Design Final Project-Site Analysis
PDF
Urban Design Final Project-Context
PDF
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
PDF
SEVA- Fashion designing-Presentation.pdf
PDF
Phone away, tabs closed: No multitasking
PPTX
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
PPTX
YV PROFILE PROJECTS PROFILE PRES. DESIGN
PPTX
Special finishes, classification and types, explanation
PPT
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
PDF
The Advantages of Working With a Design-Build Studio
PPTX
Entrepreneur intro, origin, process, method
PDF
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
PPTX
DOC-20250430-WA0014._20250714_235747_0000.pptx
PDF
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
PPT
UNIT I- Yarn, types, explanation, process
PPTX
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
6- Architecture design complete (1).pptx
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
Urban Design Final Project-Site Analysis
Urban Design Final Project-Context
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
SEVA- Fashion designing-Presentation.pdf
Phone away, tabs closed: No multitasking
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
YV PROFILE PROJECTS PROFILE PRES. DESIGN
Special finishes, classification and types, explanation
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
The Advantages of Working With a Design-Build Studio
Entrepreneur intro, origin, process, method
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
DOC-20250430-WA0014._20250714_235747_0000.pptx
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
UNIT I- Yarn, types, explanation, process
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
Ad

CS50 2022 - Lecture 2 - Arrays.pptx

Editor's Notes

  • #2: Reload codespace Uncheck VS Code tabs
  • #4: Reload codespace Uncheck VS Code tabs
  • #10: know it doesn't feel like it, but have had training wheels on… bottom-up understanding, to deduce solutions to problems
  • #13: hello0.c
  • #17: hello1.c
  • #25: ls
  • #50: 0s and 1s for printf.c are actually those for libc.so.
  • #55: intellectual property
  • #56: easier with hello-world than with, e.g., loops, which could be for loops or while loops, etc.
  • #58: https://en.wikipedia.org/wiki/Software_bug https://en.wikipedia.org/wiki/Harvard_Mark_II Dr Grace Hopper, Yale Mark II
  • #60: https://en.wikipedia.org/wiki/Grace_Hopper
  • #61: https://www.britannica.com/technology/Harvard-Mark-I SEC
  • #63: buggy0.c
  • #64: buggy1.c
  • #67: "explain as though to a TA, and when you hear yourself saying something that doesn't make sense…"
  • #68: La Parguera - Lajas, PR
  • #69: La Parguera - Lajas, PR
  • #70: largest radio telescope in the Northern/Western Hemisphere- National Astronomy and Ionosphere Center (Arecibo Observatory)
  • #71: San Francisco
  • #72: San Francisco sea lions
  • #73: Stanford
  • #74: Google
  • #75: Rome
  • #76: Rome
  • #77: London
  • #78: https://www.youtube.com/watch?v=cZB_EBsnc8c
  • #94: scores0.c
  • #101: not best design
  • #104: scores{1,2,3}.c should use constant for 3
  • #106: scores4.c
  • #107: hi{0,1}.c what about chars?
  • #112: most types have fixed length, so how implement strings?
  • #113: hi2.c
  • #116: How know where end is?
  • #118: hi3.c
  • #120: hi4.c
  • #121: https://asciichart.com/
  • #122: https://asciichart.com/
  • #123: hi5.c
  • #128: hi6.c
  • #130: hi7.c
  • #131: length{0,1}.c
  • #134: length2.c string{0,1}.c
  • #136: uppercase{0,1,2}.c
  • #137: make, cd, etc.
  • #140: greet{0,1,2,3}.c
  • #141: cowsay moo cowsay -f duck quack cowsay -f dragon RAWR
  • #143: https://community.zoom.com/t5/Meetings/ERROR-1132/td-p/40521
  • #144: https://github.com/
  • #147: status.c
  • #169: https://emojipedia.org/tangerine/