-
I'm a self-taught developer, and there's nothing quite like figuring out how things work on your own.
-
My journey began when I was still very young, not even in school yet. I started learning how computers worked by reading some books I had in the home library.
-
It wasn't until 2017 that I truly delved into learning the fundamentals of programming. I started coding in Java to create games. Yes, Java for making games - after all, in my mind, if Minecraft is made in Java, then Java should do the trick, right?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Joel
{
char **languages;
char *name;
int age;
};
int main()
{
struct Joel joel;
joel.languages = malloc(6 * sizeof(char *));
joel.name = strdup("Joel");
joel.age = 19;
const char *language_literals[] = {"Python", "C", "SQL", "JavaScript", "Java", "BASIC"};
for (int i = 0; i < 6; i++)
{
joel.languages[i] = strdup(language_literals[i]);
}
printf("Name: %s\n", joel.name);
printf("Age: %d\n", joel.age);
printf("Languages:\n");
for (int i = 0; i < 6; i++)
{
printf(" %s\n", joel.languages[i]);
}
free(joel.name);
for (int i = 0; i < 6; i++)
{
free(joel.languages[i]);
}
free(joel.languages);
return 0;
}