strings
This commit is contained in:
parent
51415ec6a1
commit
3fc465b05e
1 changed files with 7 additions and 0 deletions
7
main.c
7
main.c
|
|
@ -1,5 +1,7 @@
|
||||||
// Welcome to my journey of learning the fuckass language that is C
|
// Welcome to my journey of learning the fuckass language that is C
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
int multiply(int num_one, int num_two) {
|
int multiply(int num_one, int num_two) {
|
||||||
int result = num_one*num_two;
|
int result = num_one*num_two;
|
||||||
|
|
@ -86,6 +88,11 @@ int main() {
|
||||||
int **double_ptr = &victim_pointer;
|
int **double_ptr = &victim_pointer;
|
||||||
printf("double pointer of the &victim_pointer is: %p", double_ptr);
|
printf("double pointer of the &victim_pointer is: %p", double_ptr);
|
||||||
|
|
||||||
|
// STRING
|
||||||
|
printf("\n\nSTRING BELOW:\n"); // DIVIDER
|
||||||
|
char message[22]="Hello, world. Again...";
|
||||||
|
printf("%s", message);
|
||||||
|
|
||||||
// END
|
// END
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue