Todo List in C without file I/O and DMA.
Main.c #include<stdio.h> #include<stdbool.h> #include<string.h> #define MAX_NAME 25 #define MAX_TASKS 50 typedef struct task{ char name[MAX_NAME]; short int Status; }task; void addTask(task* tasks,int* totalTasks); void removeTask(int* totalTasks,task* tasks); void viewTask(int* totalTasks,task* tasks); int main(){ task tasks[MAX_TASKS]; int totalTasks = 0; int input; while(1){ printf("Welcome to Todo-List Manager\n"); printf("Enter the corresponding number to the task you want to do\n"); printf("1.Add a new task\n"); printf("2.View all your tasks\n"); printf("3.Remove a task\n"); printf("4.Exit the program\n"); scanf("%d",&input); switch(input){ case 1: addTask(tasks,&totalTasks); break; case 2: viewTask(&totalTa