title
C Video Tutorial 2
description
Get the Code Here : http://goo.gl/gyLN0
Welcome to part 2 of my C Video Tutorial. If you missed part 1 check it out first.
In this part of my C Tutorial I will cover: Compiling Options, Relational Operators, Logical operators, If, Else, Else If, Conditional Operator, Sizeof(), Bytes, Bits, While, Do While, For, Break, Continue and more...
detail
{'title': 'C Video Tutorial 2', 'heatmap': [{'end': 649.856, 'start': 591.141, 'weight': 1}], 'summary': 'Tutorial covers relational and logical operators, conditional operators, bits, bytes, looping, c compiler versions, c comparisons, logical operators, employee raise evaluation, conditional operator usage, data type sizes, storage basics, automating maximum value calculation, and using break statements in while loops and for loop tutorial, providing comprehensive insights into c programming with practical tips and code examples.', 'chapters': [{'end': 125.461, 'segs': [{'end': 29.042, 'src': 'embed', 'start': 0.149, 'weight': 0, 'content': [{'end': 3.631, 'text': 'well, hello internet, and welcome to part two of my C video tutorial.', 'start': 0.149, 'duration': 3.482}, {'end': 9.834, 'text': "today we're going to talk about relational operators, logical operators, if else else, if conditional operators, bits, bytes,", 'start': 3.631, 'duration': 6.203}, {'end': 12.315, 'text': 'looping and a whole bunch of other things.', 'start': 9.834, 'duration': 2.481}, {'end': 18.638, 'text': 'if you missed part one of the C video tutorial, I provide a link to it in the upper right hand corner, and all of the code used here,', 'start': 12.315, 'duration': 6.323}, {'end': 23.78, 'text': 'along with a ton of comments that would be easy to translate, is available in the description.', 'start': 18.638, 'duration': 5.142}, {'end': 24.78, 'text': 'so I have a lot to do.', 'start': 23.78, 'duration': 1}, {'end': 25.561, 'text': "so let's get into it.", 'start': 24.78, 'duration': 0.781}, {'end': 29.042, 'text': "okay, I'm using the same setup I used in the first part.", 'start': 26.38, 'duration': 2.662}], 'summary': 'Part two of c video tutorial covers relational operators, logical operators, if-else, conditional operators, bits, bytes, and looping.', 'duration': 28.893, 'max_score': 0.149, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM149.jpg'}, {'end': 86.474, 'src': 'embed', 'start': 56.298, 'weight': 1, 'content': [{'end': 60.662, 'text': "Now I'm holding a whole bunch of different things back here and I'm going to explain them as time goes on.", 'start': 56.298, 'duration': 4.364}, {'end': 65.726, 'text': 'Like for example, I, in the last part of the tutorial, talked about the size of different data types.', 'start': 60.742, 'duration': 4.984}, {'end': 71.61, 'text': "This time I'm going to actually show exactly how to find the size of data types.", 'start': 66.146, 'duration': 5.464}, {'end': 73.772, 'text': 'That was actually brought up in the comments.', 'start': 71.991, 'duration': 1.781}, {'end': 80.978, 'text': 'Another thing I want to bring up is if you want to compile one of your programs and the program name .', 'start': 74.072, 'duration': 6.906}, {'end': 86.474, 'text': "c is set up like that and you want to actually define what the executable's name would be.", 'start': 80.978, 'duration': 5.496}], 'summary': 'Demonstrating how to find size of data types and customize executable names in programming tutorials.', 'duration': 30.176, 'max_score': 56.298, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM56298.jpg'}, {'end': 133.664, 'src': 'embed', 'start': 102.844, 'weight': 2, 'content': [{'end': 104.164, 'text': '/ a.out.', 'start': 102.844, 'duration': 1.32}, {'end': 108.888, 'text': "Just something to think about, and in this tutorial we're going to be using this right here.", 'start': 104.485, 'duration': 4.403}, {'end': 114.337, 'text': 'And I actually have the 2011 version of the C compiler in this.', 'start': 109.315, 'duration': 5.022}, {'end': 118.518, 'text': "And I'm actually going to do a couple other different things compile-wise,", 'start': 114.877, 'duration': 3.641}, {'end': 125.461, 'text': 'so that we will be able to take advantage of the changes that have occurred in C instead of using the old version.', 'start': 118.518, 'duration': 6.943}, {'end': 130.523, 'text': 'Now the very first thing I want to talk about is how we can compare different variables.', 'start': 125.641, 'duration': 4.882}, {'end': 133.664, 'text': "So let's just say we have variable 1.", 'start': 130.943, 'duration': 2.721}], 'summary': 'Using 2011 c compiler to take advantage of new features, discussing variable comparison.', 'duration': 30.82, 'max_score': 102.844, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM102844.jpg'}], 'start': 0.149, 'title': 'C video tutorial part 2', 'summary': 'Covers relational and logical operators, conditional operators, bits, bytes, looping, and c compiler versions, with practical tips and code examples, aiming to provide a comprehensive understanding of c programming.', 'chapters': [{'end': 125.461, 'start': 0.149, 'title': 'C video tutorial part 2', 'summary': 'Covers relational and logical operators, conditional operators, bits, bytes, looping, and c compiler versions, with practical tips and code examples, aiming to provide a comprehensive understanding of c programming.', 'duration': 125.312, 'highlights': ['The tutorial covers relational and logical operators, if-else conditionals, bits, bytes, and looping, aiming to provide a comprehensive understanding of C programming.', 'The speaker explains how to find the size of data types and provides practical tips for compiling programs in C, including naming executables and utilizing the 2011 version of the C compiler.', 'The tutorial emphasizes the importance of using the 2011 version of the C compiler and highlights the practical advantages of doing so.']}], 'duration': 125.312, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM149.jpg', 'highlights': ['The tutorial covers relational and logical operators, if-else conditionals, bits, bytes, and looping, aiming to provide a comprehensive understanding of C programming.', 'The speaker explains how to find the size of data types and provides practical tips for compiling programs in C, including naming executables and utilizing the 2011 version of the C compiler.', 'The tutorial emphasizes the importance of using the 2011 version of the C compiler and highlights the practical advantages of doing so.']}, {'end': 480.684, 'segs': [{'end': 174.371, 'src': 'embed', 'start': 148.375, 'weight': 0, 'content': [{'end': 152.778, 'text': 'and we also have less than or equal to, and then, finally, we have not equal to.', 'start': 148.375, 'duration': 4.403}, {'end': 156.807, 'text': "And throughout this tutorial, I'm going to show you a bunch of different ways to work with these.", 'start': 153.146, 'duration': 3.661}, {'end': 166.309, 'text': "And with these relational operators, anytime you perform this type of operation, you're either going to get 1 if the evaluation is true,", 'start': 157.307, 'duration': 9.002}, {'end': 168.93, 'text': 'or 0 if it is false.', 'start': 166.309, 'duration': 2.621}, {'end': 172.551, 'text': 'And those are actually saved as ints for now.', 'start': 169.41, 'duration': 3.141}, {'end': 174.371, 'text': "Later on, I'll get into booleans.", 'start': 172.791, 'duration': 1.58}], 'summary': 'Tutorial covers relational operators with quantifiable data: 1 for true, 0 for false.', 'duration': 25.996, 'max_score': 148.375, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM148375.jpg'}, {'end': 216.384, 'src': 'embed', 'start': 192.878, 'weight': 1, 'content': [{'end': 200.02, 'text': 'So if we just go printf and say is 1 greater than 2, come in here and do this,', 'start': 192.878, 'duration': 7.142}, {'end': 206.323, 'text': 'throw in some new lines and then we can go num1 and do the relational operator or the condition right here.', 'start': 200.02, 'duration': 6.303}, {'end': 212.721, 'text': "Then remember, We're going to want to compile this in our new way, so I'm going to go ctutorial2.", 'start': 206.743, 'duration': 5.978}, {'end': 216.384, 'text': 'c, right like that, ctutorial2.', 'start': 212.721, 'duration': 3.663}], 'summary': 'Using printf to compare 1 and 2 in ctutorial2.c', 'duration': 23.506, 'max_score': 192.878, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM192878.jpg'}, {'end': 269.453, 'src': 'embed', 'start': 238.943, 'weight': 2, 'content': [{'end': 241.065, 'text': "Of course, we're going to get into more complicated things than that.", 'start': 238.943, 'duration': 2.122}, {'end': 245.306, 'text': "And the very first thing I'm going to do is talk about the if statement.", 'start': 241.405, 'duration': 3.901}, {'end': 253.288, 'text': 'Now, if is going to be used anytime you want to compare values or perform different actions depending on different comparisons that you want to make.', 'start': 245.506, 'duration': 7.782}, {'end': 258.39, 'text': "So let's say I want to check here if number one is greater than number two.", 'start': 253.508, 'duration': 4.882}, {'end': 263.331, 'text': 'And if it is, I want to put that out on the screen exactly like that.', 'start': 258.79, 'duration': 4.541}, {'end': 269.453, 'text': "However, what would we do if it isn't? Because, of course, number one could be less than number two.", 'start': 263.651, 'duration': 5.802}], 'summary': 'Introducing the concept of using the if statement to compare values and perform different actions based on the comparison results.', 'duration': 30.51, 'max_score': 238.943, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM238943.jpg'}, {'end': 368.031, 'src': 'embed', 'start': 344.939, 'weight': 3, 'content': [{'end': 353.321, 'text': 'the code that is between the curly brackets is going to be executed and then every other if statement that follows is going to be ignored.', 'start': 344.939, 'duration': 8.382}, {'end': 355.902, 'text': "so that's very important to remember, And we'll just get rid of that.", 'start': 353.321, 'duration': 2.581}, {'end': 358.544, 'text': 'And that brings us to logical operators.', 'start': 356.142, 'duration': 2.402}, {'end': 364.909, 'text': 'Now a logical operator is used any time you want to combine multiple relational operators.', 'start': 358.844, 'duration': 6.065}, {'end': 366.31, 'text': "And there's a couple of them.", 'start': 365.289, 'duration': 1.021}, {'end': 368.031, 'text': "And we're actually just going to get rid of this.", 'start': 366.51, 'duration': 1.521}], 'summary': 'Executing code between curly brackets important in logical operators.', 'duration': 23.092, 'max_score': 344.939, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM344939.jpg'}, {'end': 486.349, 'src': 'embed', 'start': 459.076, 'weight': 4, 'content': [{'end': 461.957, 'text': 'As you see right here, they are not welcome prints out on the screen.', 'start': 459.076, 'duration': 2.881}, {'end': 469.941, 'text': "And to give you an example of how not works, let's go not turns a true into false or vice versa.", 'start': 462.397, 'duration': 7.544}, {'end': 475.44, 'text': "And you're going to see if you put not and one, and execute it of course 0 shows up.", 'start': 470.361, 'duration': 5.079}, {'end': 478.242, 'text': 'So just an example of how NOT works.', 'start': 475.76, 'duration': 2.482}, {'end': 480.684, 'text': "Let's look at a whole bunch of other examples.", 'start': 478.723, 'duration': 1.961}, {'end': 486.349, 'text': "Let's say for example we want to check if an employee named Bob deserves a raise.", 'start': 481.004, 'duration': 5.345}], 'summary': "Demonstration of the 'not' operator, turning true into false or vice versa, shown with an example of 'not' and one resulting in 0.", 'duration': 27.273, 'max_score': 459.076, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM459076.jpg'}], 'start': 125.641, 'title': 'C comparisons and logical operators', 'summary': 'Discusses comparing variables in c using relational operators, resulting in 1 for true and 0 for false. it also covers if statements for executing actions based on comparisons, emphasizing logical operators like and, or, and not.', 'chapters': [{'end': 238.562, 'start': 125.641, 'title': 'Comparing variables in c', 'summary': 'Discusses the use of relational operators to compare variables in c, with examples of greater than, less than, equal to, greater than or equal to, less than or equal to, and not equal to, resulting in 1 for true and 0 for false.', 'duration': 112.921, 'highlights': ['Relational operators like greater than, less than, equal to, greater than or equal to, less than or equal to, and not equal to are used to compare variables, resulting in 1 for true and 0 for false.', "Demonstration of comparing variables using printf and evaluating the condition '1 greater than 2', which results in 0."]}, {'end': 480.684, 'start': 238.943, 'title': 'If statements and logical operators', 'summary': 'Covers the usage of if statements for comparing values and executing different actions based on comparisons, with a focus on the importance of logical operators like and, or, and not.', 'duration': 241.741, 'highlights': ['Usage of if statements for comparing values and executing different actions based on comparisons', 'Importance of logical operators like AND, OR, and NOT', 'Explanation of how NOT works']}], 'duration': 355.043, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM125641.jpg', 'highlights': ['Relational operators compare variables, resulting in 1 for true and 0 for false.', "Demonstration of comparing variables using printf and evaluating the condition '1 greater than 2', resulting in 0.", 'Usage of if statements for comparing values and executing different actions based on comparisons', 'Importance of logical operators like AND, OR, and NOT', 'Explanation of how NOT works']}, {'end': 700.668, 'segs': [{'end': 514.946, 'src': 'embed', 'start': 481.004, 'weight': 0, 'content': [{'end': 486.349, 'text': "Let's say for example we want to check if an employee named Bob deserves a raise.", 'start': 481.004, 'duration': 5.345}, {'end': 493.835, 'text': "Now the conditions we're going to set here, let's actually just show those conditions so we can look at how the IF works inside of C.", 'start': 486.669, 'duration': 7.166}, {'end': 513.285, 'text': 'Bob is going to qualify for a raise if he missed less than 10 days work and has over 30, 000 in sales or signed up more than 30 new customers.', 'start': 494.275, 'duration': 19.01}, {'end': 514.946, 'text': "Let's just put this on the next line.", 'start': 513.645, 'duration': 1.301}], 'summary': 'To qualify for a raise, bob must have missed less than 10 days of work and achieved over $30,000 in sales or signed up more than 30 new customers.', 'duration': 33.942, 'max_score': 481.004, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM481004.jpg'}, {'end': 649.856, 'src': 'heatmap', 'start': 591.141, 'weight': 1, 'content': [{'end': 599.589, 'text': "because i want to talk about a shortcut way of performing a comparison in which you know that you're either going to get one result or another result.", 'start': 591.141, 'duration': 8.448}, {'end': 602.051, 'text': "so i'm going to say customer age is equal to 38.", 'start': 599.589, 'duration': 2.462}, {'end': 603.873, 'text': "then what we're going to do?", 'start': 602.051, 'duration': 1.822}, {'end': 605.334, 'text': 'and ignore this star for now.', 'start': 603.873, 'duration': 1.461}, {'end': 608.096, 'text': "i'm going to get into this as the tutorial continues.", 'start': 605.334, 'duration': 2.762}, {'end': 613.782, 'text': "what we're going to do here is create legal age and we're going to say customer age.", 'start': 608.096, 'duration': 5.686}, {'end': 614.762, 'text': "we're going to put a conditional.", 'start': 613.782, 'duration': 0.98}, {'end': 628.552, 'text': "this is called the conditional operator and the way it works is you say This is going to be my condition and if that condition is true in this situation I'm going to return true and store it in this character array called legal age.", 'start': 614.762, 'duration': 13.79}, {'end': 638.598, 'text': "If this condition here customer age is actually less than 21 instead of greater than we're going to return false and this is the conditional operator.", 'start': 628.972, 'duration': 9.626}, {'end': 639.838, 'text': "It's very very useful.", 'start': 638.898, 'duration': 0.94}, {'end': 641.752, 'text': 'Then what we can do Go like that.', 'start': 640.159, 'duration': 1.593}, {'end': 644.474, 'text': 'And remember, this is a character array.', 'start': 641.972, 'duration': 2.502}, {'end': 646.735, 'text': 'So this is going to be considered a string.', 'start': 644.494, 'duration': 2.241}, {'end': 648.056, 'text': "Once again, don't worry about it.", 'start': 647.155, 'duration': 0.901}, {'end': 649.856, 'text': "I can't cover everything in one tutorial.", 'start': 648.076, 'duration': 1.78}], 'summary': 'Explains a shortcut for performing a conditional comparison, using customer age as an example and the conditional operator to return true or false. demonstrates the creation of a character array to store the result.', 'duration': 58.715, 'max_score': 591.141, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM591141.jpg'}, {'end': 638.598, 'src': 'embed', 'start': 614.762, 'weight': 3, 'content': [{'end': 628.552, 'text': "this is called the conditional operator and the way it works is you say This is going to be my condition and if that condition is true in this situation I'm going to return true and store it in this character array called legal age.", 'start': 614.762, 'duration': 13.79}, {'end': 638.598, 'text': "If this condition here customer age is actually less than 21 instead of greater than we're going to return false and this is the conditional operator.", 'start': 628.972, 'duration': 9.626}], 'summary': 'Conditional operator checks if customer age is less than 21 and returns true or false.', 'duration': 23.836, 'max_score': 614.762, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM614762.jpg'}, {'end': 690.004, 'src': 'embed', 'start': 659.509, 'weight': 5, 'content': [{'end': 660.65, 'text': "It's quite useful, actually.", 'start': 659.509, 'duration': 1.141}, {'end': 668.717, 'text': "Another thing we can do with it, let's say we define number of products, and let's say we make that equal to 10.", 'start': 661.271, 'duration': 7.446}, {'end': 674.963, 'text': 'I can come in here and do a printf in a really neat way using a conditional operator and say something like I bought,', 'start': 668.717, 'duration': 6.246}, {'end': 678.006, 'text': 'throw in a string products like that.', 'start': 674.963, 'duration': 3.043}, {'end': 682.741, 'text': 'And then put a conditional operator that says num of products.', 'start': 678.359, 'duration': 4.382}, {'end': 688.063, 'text': "If it's greater than 1, what we're going to return as a string is going to be many.", 'start': 683.301, 'duration': 4.762}, {'end': 690.004, 'text': "Otherwise, we're going to return 1.", 'start': 688.343, 'duration': 1.661}], 'summary': 'Using a conditional operator to print the number of products bought in a neat way, with an example of 10 products.', 'duration': 30.495, 'max_score': 659.509, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM659509.jpg'}], 'start': 481.004, 'title': 'Employee raise evaluation and c conditional operator', 'summary': 'Explains how to evaluate employee raise eligibility based on specific conditions, and demonstrates the usage and benefits of the conditional operator in c with quantifiable examples including missed work days, sales, and new customer sign-ups, legal age, and product quantity.', 'chapters': [{'end': 586.237, 'start': 481.004, 'title': 'Employee raise evaluation', 'summary': "Explains how to evaluate an employee's eligibility for a raise using specific conditions, such as missed work days, sales, and new customer sign-ups, and demonstrates a scenario where an employee named bob qualifies for a raise based on the given conditions.", 'duration': 105.233, 'highlights': ['Bob qualifies for a raise if he missed less than 10 days of work and has over $30,000 in sales or signed up more than 30 new customers, which he meets as he missed 8 days, has $24,000 in sales, and signed up 32 new customers.', "The conditions for a raise are evaluated through an IF statement using logical operators like AND and OR to check if Bob's missed days, total sales, or new customers meet the specified criteria.", 'The script includes a conditional statement that determines whether Bob gets a raise based on the evaluation of the set conditions.']}, {'end': 700.668, 'start': 586.497, 'title': 'C conditional operator', 'summary': 'Explains the usage and benefits of the conditional operator in c, demonstrating its application in determining legal age and product quantity with quantifiable examples.', 'duration': 114.171, 'highlights': ['The chapter explains the usage and benefits of the conditional operator in C, demonstrating its application in determining legal age and product quantity with quantifiable examples.', "The speaker demonstrates how the conditional operator is used to determine legal age, showing that if customer age is less than 21, it returns false, and if it's greater, it returns true, exemplifying its practical application.", "Another application of the conditional operator is shown where it determines the quantity of products purchased, with the speaker providing a clear example of using the operator to return 'many' if the number of products is greater than 1, and '1' otherwise."]}], 'duration': 219.664, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM481004.jpg', 'highlights': ['Bob qualifies for a raise if he missed less than 10 days of work and has over $30,000 in sales or signed up more than 30 new customers, which he meets as he missed 8 days, has $24,000 in sales, and signed up 32 new customers.', "The conditions for a raise are evaluated through an IF statement using logical operators like AND and OR to check if Bob's missed days, total sales, or new customers meet the specified criteria.", 'The script includes a conditional statement that determines whether Bob gets a raise based on the evaluation of the set conditions.', 'The chapter explains the usage and benefits of the conditional operator in C, demonstrating its application in determining legal age and product quantity with quantifiable examples.', "The speaker demonstrates how the conditional operator is used to determine legal age, showing that if customer age is less than 21, it returns false, and if it's greater, it returns true, exemplifying its practical application.", "Another application of the conditional operator is shown where it determines the quantity of products purchased, with the speaker providing a clear example of using the operator to return 'many' if the number of products is greater than 1, and '1' otherwise."]}, {'end': 1071.931, 'segs': [{'end': 731.375, 'src': 'embed', 'start': 701.334, 'weight': 4, 'content': [{'end': 706.337, 'text': "Now I'd like to talk about something that I actually planned in the last tutorial, but one of you guys actually commented on it.", 'start': 701.334, 'duration': 5.003}, {'end': 715.322, 'text': 'And that is specifically how much space do tata types actually take up? How big can an integer really be or a character really be??', 'start': 706.557, 'duration': 8.765}, {'end': 717.544, 'text': "Well, there's actually a way to find that out.", 'start': 715.643, 'duration': 1.901}, {'end': 722.687, 'text': 'In the past, what I was referring to was the past, the minimum size for an integer.', 'start': 717.844, 'duration': 4.843}, {'end': 731.375, 'text': 'and not the maximum or necessarily your size or your maximum size for an integer depending upon your computer.', 'start': 723.127, 'duration': 8.248}], 'summary': 'Discussion on determining the space taken by data types in memory.', 'duration': 30.041, 'max_score': 701.334, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM701334.jpg'}, {'end': 808.259, 'src': 'embed', 'start': 765.364, 'weight': 1, 'content': [{'end': 769.987, 'text': "A long int takes up, and then we're going to type in long int.", 'start': 765.364, 'duration': 4.623}, {'end': 773.609, 'text': "Then we're going to type in float, and then we're going to type in double.", 'start': 770.167, 'duration': 3.442}, {'end': 775.65, 'text': 'And float, and double.', 'start': 774.149, 'duration': 1.501}, {'end': 777.171, 'text': "I'll save, bounce over here.", 'start': 776.03, 'duration': 1.141}, {'end': 780.492, 'text': 'And there you can see, a character is going to take up one byte.', 'start': 777.391, 'duration': 3.101}, {'end': 782.353, 'text': 'An integer is going to take up four bytes.', 'start': 780.672, 'duration': 1.681}, {'end': 783.974, 'text': 'A long is going to take up eight bytes.', 'start': 782.513, 'duration': 1.461}, {'end': 786.976, 'text': 'A float is going to take up four bytes, and a double is going to take up eight bytes.', 'start': 784.034, 'duration': 2.942}, {'end': 798.208, 'text': 'But what exactly is a bit, and what exactly is a byte? Well, a bit is actually short for binary digit, and a bit can either be a 1 or a 0.', 'start': 787.196, 'duration': 11.012}, {'end': 798.909, 'text': "That's it.", 'start': 798.208, 'duration': 0.701}, {'end': 803.253, 'text': 'A byte is generally considered to be 8 bits.', 'start': 799.289, 'duration': 3.964}, {'end': 808.259, 'text': "And I have a little handy presentation, and I'm going to show you exactly what I'm talking about.", 'start': 803.754, 'duration': 4.505}], 'summary': 'The sizes of data types are: character (1 byte), integer (4 bytes), long (8 bytes), float (4 bytes), and double (8 bytes). a bit is a binary digit (1 or 0), and a byte is 8 bits.', 'duration': 42.895, 'max_score': 765.364, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM765364.jpg'}, {'end': 863.954, 'src': 'embed', 'start': 833.226, 'weight': 3, 'content': [{'end': 840.373, 'text': 'And then a 1, 0, 0 is going to be equal to 4 as a decimal versus a binary number.', 'start': 833.226, 'duration': 7.147}, {'end': 846.46, 'text': "So what exactly does that mean? Well, let's just look at it as a smaller number of bits being 3.", 'start': 840.694, 'duration': 5.766}, {'end': 854.608, 'text': 'Well, everything is structured as a binary number in that this can either produce a 0 or a 1.', 'start': 846.46, 'duration': 8.148}, {'end': 863.954, 'text': "and then the possible numbers that it's going to produce from that point forward are actually going to double as we increase the number of bits.", 'start': 854.608, 'duration': 9.346}], 'summary': 'Increasing bits in binary numbers doubles possible outcomes.', 'duration': 30.728, 'max_score': 833.226, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM833226.jpg'}, {'end': 1021.057, 'src': 'embed', 'start': 987.247, 'weight': 0, 'content': [{'end': 993.13, 'text': 'And if we take a look at that, that shows us that actually, on this computer, and more than likely on your computer,', 'start': 987.247, 'duration': 5.883}, {'end': 1001.113, 'text': "you're going to have a maximum value that you can store inside of an integer of 2 billion 147 million blah, blah, blah, blah blah,", 'start': 993.13, 'duration': 7.983}, {'end': 1005.035, 'text': 'and a minimum of negative 2 billion, blah, blah, blah, blah blah.', 'start': 1001.113, 'duration': 3.922}, {'end': 1007.116, 'text': "So let's take a look at that in the code.", 'start': 1005.235, 'duration': 1.881}, {'end': 1009.317, 'text': 'So here we are back again.', 'start': 1008.036, 'duration': 1.281}, {'end': 1021.057, 'text': "And this time what I'm going to do is I'm going to say int big and just gonna call it that, and I'm gonna go 2, 1, 4, 7, 4, 8, 3, 6, 4, 8.", 'start': 1009.337, 'duration': 11.72}], 'summary': 'Computers can store integers from -2,147,483,648 to 2,147,483,647.', 'duration': 33.81, 'max_score': 987.247, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM987247.jpg'}], 'start': 701.334, 'title': 'Data type sizes and storage basics in programming', 'summary': "Discusses determining storage size of data types like characters and integers, mentions minimum size for an integer, and explains memory allocation and representation of binary numbers, providing insights into maximum/minimum values for integers in a computer's memory.", 'chapters': [{'end': 764.884, 'start': 701.334, 'title': 'Data type sizes in programming', 'summary': 'Discusses how to determine the storage size of data types like characters and integers, and mentions the minimum size for an integer and how to find out the size of a data type.', 'duration': 63.55, 'highlights': ['The chapter discusses how to determine the storage size of data types like characters and integers.', 'Mentions the minimum size for an integer and how to find out the size of a data type.']}, {'end': 1071.931, 'start': 765.364, 'title': 'Data storage basics in programming', 'summary': "Explains the storage sizes of different data types - from characters to integers and the representation of binary numbers. it provides insights into the memory allocation and maximum/minimum values for integers in a computer's memory.", 'duration': 306.567, 'highlights': ['A long takes up 8 bytes, float takes up 4 bytes, and double takes up 8 bytes.', 'Explanation of bits and bytes, where a byte is generally considered to be 8 bits.', 'The maximum value for an integer is approximately 2 billion 147 million, with a minimum of negative 2 billion.', 'Illustration of binary numbers and their representation using bits.']}], 'duration': 370.597, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM701334.jpg', 'highlights': ['The maximum value for an integer is approximately 2 billion 147 million, with a minimum of negative 2 billion.', 'A long takes up 8 bytes, float takes up 4 bytes, and double takes up 8 bytes.', 'Explanation of bits and bytes, where a byte is generally considered to be 8 bits.', 'Illustration of binary numbers and their representation using bits.', 'The chapter discusses how to determine the storage size of data types like characters and integers.', 'Mentions the minimum size for an integer and how to find out the size of a data type.']}, {'end': 1430.428, 'segs': [{'end': 1098.153, 'src': 'embed', 'start': 1072.252, 'weight': 0, 'content': [{'end': 1079.636, 'text': "Now let's say we wanted to actually automate this whole process of calculating the maximum value based off of the number of bits that we have.", 'start': 1072.252, 'duration': 7.384}, {'end': 1082.543, 'text': 'Number how big is equal to 0.', 'start': 1079.856, 'duration': 2.687}, {'end': 1086.485, 'text': "And what I'm going to do is I'm going to say printf how many bits.", 'start': 1082.543, 'duration': 3.942}, {'end': 1092.749, 'text': "Then I'm going to do a scanf and ask that person exactly how big is the number of bits.", 'start': 1087.066, 'duration': 5.683}, {'end': 1098.153, 'text': "And then we're going to think here for a second about exactly how we're going to write this code.", 'start': 1093.27, 'duration': 4.883}], 'summary': 'Automate calculation of maximum value based on number of bits.', 'duration': 25.901, 'max_score': 1072.252, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM1072252.jpg'}, {'end': 1139.158, 'src': 'embed', 'start': 1113.456, 'weight': 1, 'content': [{'end': 1120.582, 'text': 'However, what happens if they type in 2? They have 2 bits, and you want to return the biggest number that they can possibly create.', 'start': 1113.456, 'duration': 7.126}, {'end': 1126.788, 'text': "Well, that's going to be created by going 1 plus 2, and that is going to give you 3.", 'start': 1120.823, 'duration': 5.965}, {'end': 1129.15, 'text': "Or, in the binary world, that's going to be equal to 1, 1.", 'start': 1126.788, 'duration': 2.362}, {'end': 1135.275, 'text': 'Then, if we go three, three bits, how big of a number can we make?', 'start': 1129.15, 'duration': 6.125}, {'end': 1139.158, 'text': "well, that's actually going to be three, and that three comes from here.", 'start': 1135.275, 'duration': 3.883}], 'summary': 'Explains creating binary numbers from bits: 2 bits create 3, 3 bits create 3', 'duration': 25.702, 'max_score': 1113.456, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM1113456.jpg'}, {'end': 1296.263, 'src': 'embed', 'start': 1271.671, 'weight': 2, 'content': [{'end': 1281.276, 'text': "and i'm kind of playing a little playing around here a little bit just so that i can show you more examples of if statements and while loops and a whole bunch of other different things.", 'start': 1271.671, 'duration': 9.605}, {'end': 1291.08, 'text': "so i'm going to say if number how big is equal to zero, or number how big is equal to one like that, I'm going to say printf,", 'start': 1281.276, 'duration': 9.804}, {'end': 1296.263, 'text': 'top value based off the number of bits, is going to be whatever they entered.', 'start': 1291.08, 'duration': 5.183}], 'summary': 'Demonstrating if statements and while loops with examples.', 'duration': 24.592, 'max_score': 1271.671, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM1271671.jpg'}], 'start': 1072.252, 'title': 'Automating maximum value calculation', 'summary': "Discusses automating the process of calculating the maximum value based on the number of bits input, demonstrating the algorithm's logic and providing examples of the maximum values for different bit inputs, and the use of if statements and while loops.", 'chapters': [{'end': 1430.428, 'start': 1072.252, 'title': 'Automating maximum value calculation based on bits', 'summary': "Discusses automating the process of calculating the maximum value based on the number of bits input, demonstrating the algorithm's logic and providing examples of the maximum values for different bit inputs, and the use of if statements and while loops to achieve this computation.", 'duration': 358.176, 'highlights': ['The maximum value calculation algorithm is explained, showcasing the logic and process behind determining the maximum value based on the number of bits input.', 'Examples of maximum values for different bit inputs are provided, such as 2 bits resulting in a maximum value of 3, and 3 bits resulting in a maximum value of 7.', 'Demonstration of the use of if statements to handle different scenarios, such as if the number of bits is zero or one, and the corresponding print statements for these cases.']}], 'duration': 358.176, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM1072252.jpg', 'highlights': ['The maximum value calculation algorithm is explained, showcasing the logic and process behind determining the maximum value based on the number of bits input.', 'Examples of maximum values for different bit inputs are provided, such as 2 bits resulting in a maximum value of 3, and 3 bits resulting in a maximum value of 7.', 'Demonstration of the use of if statements to handle different scenarios, such as if the number of bits is zero or one, and the corresponding print statements for these cases.']}, {'end': 1853.431, 'segs': [{'end': 1493.506, 'src': 'embed', 'start': 1463.443, 'weight': 0, 'content': [{'end': 1465.944, 'text': 'This is just one time in which you would use a break statement.', 'start': 1463.443, 'duration': 2.501}, {'end': 1477.512, 'text': 'Which is basically whenever you want to avoid a potential for an infinite loop or you want to automatically always throw yourself out of a while loop if a certain thing ever happens.', 'start': 1466.243, 'duration': 11.269}, {'end': 1481.116, 'text': "You're almost always going to use a break statement with an if statement.", 'start': 1477.793, 'duration': 3.323}, {'end': 1482.397, 'text': "So as you're going to see here.", 'start': 1481.176, 'duration': 1.221}, {'end': 1485.619, 'text': "So I'm going to say guess my secret number like this.", 'start': 1482.557, 'duration': 3.062}, {'end': 1486.9, 'text': 'Number guessed.', 'start': 1486.22, 'duration': 0.68}, {'end': 1493.506, 'text': "Then what we're going to say is if number guessed is equal to the secret number.", 'start': 1487.401, 'duration': 6.105}], 'summary': 'Using break statement to exit a loop if a condition is met.', 'duration': 30.063, 'max_score': 1463.443, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM1463443.jpg'}, {'end': 1561.913, 'src': 'embed', 'start': 1529.243, 'weight': 4, 'content': [{'end': 1530.923, 'text': "And that's another example of while loop.", 'start': 1529.243, 'duration': 1.68}, {'end': 1538.906, 'text': 'Another thing that is very useful in programming, no matter what anybody says to you, is a do while loop.', 'start': 1531.363, 'duration': 7.543}, {'end': 1544.728, 'text': "Now, you're going to use a do while loop whenever you need something done at the very minimum one time.", 'start': 1539.346, 'duration': 5.382}, {'end': 1549.089, 'text': "But you don't know how many times you're going to need to loop thereafter.", 'start': 1544.968, 'duration': 4.121}, {'end': 1555.087, 'text': "And that is also the difference between the do while and the while loop and the for loop, which you're going to see here in a second.", 'start': 1549.502, 'duration': 5.585}, {'end': 1561.913, 'text': 'So you might ask yourself well, when would I ever need to do something once, every single time?', 'start': 1555.327, 'duration': 6.586}], 'summary': 'Do while loop useful for minimum one-time execution', 'duration': 32.67, 'max_score': 1529.243, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM1529243.jpg'}, {'end': 1679.575, 'src': 'embed', 'start': 1636.328, 'weight': 2, 'content': [{'end': 1639.23, 'text': "So there's an example of how do while loop can be very, very useful.", 'start': 1636.328, 'duration': 2.902}, {'end': 1642.012, 'text': 'And that brings us to the for loop.', 'start': 1639.55, 'duration': 2.462}, {'end': 1649.953, 'text': "Now you're going to want to use a for loop when you know up front exactly how many times you need to loop through something.", 'start': 1642.947, 'duration': 7.006}, {'end': 1656.999, 'text': "And the basic format of a for loop is you're going to type in for and you are going to define an incrementer.", 'start': 1650.253, 'duration': 6.746}, {'end': 1662.799, 'text': "And I'm actually going to Use the C99 version of the for loop in this tutorial.", 'start': 1657.339, 'duration': 5.46}, {'end': 1666.603, 'text': "And then you're going to define a condition and another semicolon.", 'start': 1663.1, 'duration': 3.503}, {'end': 1670.687, 'text': 'And then you are going to increment your incrementer.', 'start': 1666.783, 'duration': 3.904}, {'end': 1673.369, 'text': 'And then put a whole bunch of things between curly brackets.', 'start': 1670.947, 'duration': 2.422}, {'end': 1675.09, 'text': "And that's how for is defined.", 'start': 1673.429, 'duration': 1.661}, {'end': 1679.575, 'text': "So let's say you wanted to define something that is going to count to 20.", 'start': 1675.411, 'duration': 4.164}], 'summary': 'Using for loop for precise iterations, like counting to 20.', 'duration': 43.247, 'max_score': 1636.328, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM1636328.jpg'}, {'end': 1816.596, 'src': 'embed', 'start': 1789.037, 'weight': 1, 'content': [{'end': 1792.739, 'text': "Let's say you decide you only want to print odd numbers.", 'start': 1789.037, 'duration': 3.702}, {'end': 1797.363, 'text': "Well how can you do that? Well there's this nice little thing called continue.", 'start': 1793.3, 'duration': 4.063}, {'end': 1799.804, 'text': "And I'm actually going to chuck this up to 40.", 'start': 1797.423, 'duration': 2.381}, {'end': 1802.426, 'text': 'What continue is going to allow you to do is skip.', 'start': 1799.804, 'duration': 2.622}, {'end': 1811.212, 'text': 'the current iteration of the loop, and instead continue with the next loop cycle, which is going to increment counter in this situation.', 'start': 1802.745, 'duration': 8.467}, {'end': 1816.596, 'text': "And how we're going to be able to use it, again, if is very often used with an if statement.", 'start': 1811.432, 'duration': 5.164}], 'summary': "Using 'continue' to skip even numbers in a loop up to 40.", 'duration': 27.559, 'max_score': 1789.037, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM1789037.jpg'}], 'start': 1430.468, 'title': 'Using break statements in while loops and for loop tutorial in c programming', 'summary': 'Explains the use of break statements in while loops and demonstrates a guessing game and the importance of breaking out of a loop with if statements. it also introduces the for loop in c programming and shows how to iterate through a specific number of times and skip iterations to print only odd numbers.', 'chapters': [{'end': 1635.928, 'start': 1430.468, 'title': 'Using break statements in while loops', 'summary': 'Explains the use of break statements in while loops, with an example of a guessing game and the distinction between do while loop and while loop, emphasizing the importance of breaking out of a loop and the use of if statements with break. it also demonstrates how to use a do while loop for input validation.', 'duration': 205.46, 'highlights': ['The chapter explains the use of break statements in while loops, with an example of a guessing game and the distinction between do while loop and while loop, emphasizing the importance of breaking out of a loop and the use of if statements with break.', 'It also demonstrates how to use a do while loop for input validation.']}, {'end': 1853.431, 'start': 1636.328, 'title': 'Introduction to c programming: for loop tutorial', 'summary': "Introduces the for loop in c programming, demonstrating how to use it to iterate through a specific number of times and how to skip iterations to print only odd numbers, resulting in a comprehensive understanding of the for loop's functionality.", 'duration': 217.103, 'highlights': ['The for loop is used when the number of iterations is known upfront, providing a specific example of counting to 20, demonstrating the practical application of the for loop in C programming.', "Demonstrating the use of 'continue' to skip iterations and print only odd numbers, providing a practical demonstration of the 'continue' statement's functionality in the context of a for loop.", 'Explanation of the C99 version of the for loop and the need to define the incrementer, condition, and incrementing process within the for loop structure, providing a comprehensive understanding of the syntax and requirements of the for loop in C programming.', "Detailed explanation of the syntax and structure of the for loop, including the requirement to define an incrementer, condition, and incrementing process, contributing to a clear understanding of the for loop's implementation in C programming."]}], 'duration': 422.963, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/6uIc4PtB9BM/pics/6uIc4PtB9BM1430468.jpg', 'highlights': ['The chapter explains the use of break statements in while loops, with an example of a guessing game and the distinction between do while loop and while loop, emphasizing the importance of breaking out of a loop and the use of if statements with break.', "Demonstrating the use of 'continue' to skip iterations and print only odd numbers, providing a practical demonstration of the 'continue' statement's functionality in the context of a for loop.", 'Explanation of the C99 version of the for loop and the need to define the incrementer, condition, and incrementing process within the for loop structure, providing a comprehensive understanding of the syntax and requirements of the for loop in C programming.', 'The for loop is used when the number of iterations is known upfront, providing a specific example of counting to 20, demonstrating the practical application of the for loop in C programming.', 'It also demonstrates how to use a do while loop for input validation.']}], 'highlights': ['The tutorial covers relational and logical operators, if-else conditionals, bits, bytes, and looping, aiming to provide a comprehensive understanding of C programming.', 'Bob qualifies for a raise if he missed less than 10 days of work and has over $30,000 in sales or signed up more than 30 new customers, which he meets as he missed 8 days, has $24,000 in sales, and signed up 32 new customers.', 'The maximum value for an integer is approximately 2 billion 147 million, with a minimum of negative 2 billion.', 'The chapter explains the use of break statements in while loops, with an example of a guessing game and the distinction between do while loop and while loop, emphasizing the importance of breaking out of a loop and the use of if statements with break.', 'Demonstration of the use of if statements to handle different scenarios, such as if the number of bits is zero or one, and the corresponding print statements for these cases.']}