#include <stdio.h>
#include <time.h>
typedef struct {
char name[50];
int age;
char hobbies[100];
char current_role[50];
} SoftwareDeveloper;
SoftwareDeveloper software_developer() {
SoftwareDeveloper me;
snprintf(me.name, sizeof(me.name), "Thalys Leite");
time_t now = time(NULL);
struct tm *t = localtime(&now);
int current_year = t->tm_year + 1900;
me.age = current_year - 2000;
snprintf(me.hobbies, sizeof(me.hobbies), "Travel to incredible (or not so incredible) places.");
snprintf(me.current_role, sizeof(me.current_role), "Software Developer");
return me;
}
int main() {
SoftwareDeveloper me = software_developer();
printf("Name: %s\n", me.name);
printf("Age: %d\n", me.age);
printf("Hobbies: %s\n", me.hobbies);
printf("Current Role: %s\n", me.current_role);
return 0;
}
🎯
Focusing
Pinned Loading
-
-
-
-
-
-
TCC-LocPet
TCC-LocPet Public🐕 the locpet project dedicated to locating lost and abandoned animals
JavaScript 1
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.

