challenge.c
memory-and-numbers.md
C
Memory and numbers (C, C++, Rust)
Difficulty 2/3
1
#
include
<stdio.h>
2
#
include
<string.h>
3
4
void
greet(
const
char
*input) {
5
char
name[
16
];
6
strcpy(name, input);
/* no length check */
7
printf(
"Hello, %s\n"
, name);
8
}