Beginning C Programming - Part 43 - Data Structures & Linked Lists #2

preview_player
Показать описание
We chatter on this Discord server:

Beginning C Programming - Part 43 - Data Structures & Linked Lists #2

Series of videos on programming in C

I've added ads, as it seems it's the only way to appear in searches!
Рекомендации по теме
Комментарии
Автор

Thanks for this amazing video. I want to ask you what if i don't like to limit my code with const int MaxCar = 4? How can I code something like getting maximum number of cars from user input? Thanks...

nasirsinani
Автор

Well i Realy Like this Video but one thing using
printf("Enter Name And Speed: ");
is dangerous cuz it's executable you should use
printf("%s", "Enter Name And Speed: ");
So change the command type to sring

hoodadtabibi
Автор

In PrintList(), line 15, why do you create a pointer *car and assign it in line 17 car = &carArray[carIndex]; ?? Why not just iterating over that array which you passed by value to the function??

richardteubner
Автор

When i run the program after ive added some random cars i get something like

print
Car List:
Car:1 Name Speed4196605

Car:2 Name Speed0

Total:2 Cars

Can you explain whats going wrong here?

DarthStalkers
welcome to shbcf.ru