C Programming Tutorial - 39 - int and float Arrays

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Hey Bucky. Thanks to you I learned how to program with python/wxPython. Python 3 coding is sum what similar to C. Now I'm finally taking the plunge to learn C. So who would I turn to if I want to learn coding a programming language. Non other than thenewboston aka Bucky Roberts. You are a great teacher Bucky. I am a visual learner you got it hands down. Thank you for your long hard work and now another journey of learning, together.

FandangleProductions
Автор

Cool! But, there is no need of 2nd for loop.

int i;
int eggs [5];
int total = 0;
int average = 0;

for(i = 0; i < 5; i++){
printf("How many eggs did you eat on day %d?\n", i + 1);
scanf("%d", &eggs[i]);
total += eggs[i];
}

average = total / 5;
printf("You ate %d eggs in 5 days for which the average is %d.", total, average);

Jasux
Автор

I wish you were my programming teacher. :) 

dividd
Автор

1:25 They don't have that "null zero"? You mean "string terminator"? I'm confused.

edit also I don't recall in your tutorials why we must put meatBalls with [i] aftre it, what is the reason for [i] and how does it work?

kaikoda
Автор

why not calculate sum inside the first for loop?

Mental
Автор

Great tutorials! You changed my mind about C programming! I like it again! :)

saras
Автор

Very Useful tutorial ... THANK YOU ^_^
but if you could  zoom the screen a little bit that would be great.

akaRahouf
Автор

Hey! Thanks for your tutorials. I think different about programming in C, since the day I first watched your videos.
But i have two questions about this video.
1. Why we have to use '&' in function scanf, if we work with an array?
2. I think we should use float for variable 'avg', don't we?
Am i right or am i missing something? Thanks! :)

horvathszi
Автор

Question! Why must you set int total=0; in the beginning? When i set it as int total; it doesn't work....

jialu
Автор

I thought you didn´t have to use an ampersand sign for an array... ?

alexschulte
Автор

Why have you created two 'for' loops?

eeshanjaiswal
Автор

why we need the & before meatBalls[ ] you said we don't need with array, only for primtive value ?

FunkyFrogProject
Автор

why did you use ampersand in scanf since this was an array, in your initial lectures you said that we used ampersands in variables... im a bit confused

jenishhirpara
Автор

such a good video but articles are so little its hard to read while watching.

ranakrakacan
Автор

dude tell me what is the [I] used for I did not get the concept of that thing

koustubhsharma
Автор

great job bucky thank you so much/
greek sokka underneath me - you got a point, there's no real need in creating another variable average (sum\days) will do the job just fine.

IDF
Автор

Got a man crush on Bucky....thank you so much! Very helpful!

bigsmooth
Автор

Bit of a quality drop on this video. The title of the video is "Int and float arrays" yet you never created a float array in this tutorial, and to add onto this, you made an extra for loop for no real reason.

YuukiRusGames
Автор

The monitor is so far away, your tutorials are golddd but ahhh 😭😭😭

sidra-slhs
Автор

you can do all the calculations within the first loop and of course the output outside the loop

jacobgriner
welcome to shbcf.ru