1 00:00:01,070 --> 00:00:08,030 So now moving to the next slide, we will be discussing more data types, so data types, we need to 2 00:00:08,030 --> 00:00:15,170 use a lot of data types in our programs because the programs, all the programs may be actually working 3 00:00:15,170 --> 00:00:15,980 on data, right? 4 00:00:16,160 --> 00:00:20,180 We in computers, most of our activities are concentrated on data. 5 00:00:20,510 --> 00:00:22,250 How we can add data. 6 00:00:22,250 --> 00:00:25,790 How we can subtract data, how we can divide data. 7 00:00:25,880 --> 00:00:27,650 That's about digital data. 8 00:00:27,710 --> 00:00:29,630 That means then that no data. 9 00:00:29,990 --> 00:00:39,080 Similarly, we have a lot of data, other data types like if I have a kind of a name, that's also data, 10 00:00:39,260 --> 00:00:44,050 but we cannot write my name Aljunied as indigenous. 11 00:00:44,060 --> 00:00:50,150 It can be written as only Gattaca, so we should need another data type so that set GAD database. 12 00:00:50,420 --> 00:00:59,420 So as the name suggests here, data tables represent the type of data which we can process use are using 13 00:00:59,420 --> 00:01:04,790 our computer program, so it can be new money data if I numeric database and more data disseminating 14 00:01:04,790 --> 00:01:05,810 any kind of data. 15 00:01:06,020 --> 00:01:10,490 So in order to represent any kind of data, you say database. 16 00:01:11,570 --> 00:01:12,840 So here are some examples. 17 00:01:13,310 --> 00:01:20,840 So these are the popular data types associated in C++ language, so you can see anybody yet in my number, 18 00:01:20,840 --> 00:01:21,650 equal to fight. 19 00:01:21,890 --> 00:01:28,910 So it's integer data which actually shows all no the number without a decimal point. 20 00:01:29,150 --> 00:01:36,440 Then we have flawed data point, which which means like the number can be decimal numbers. 21 00:01:36,440 --> 00:01:37,520 So that's right. 22 00:01:37,910 --> 00:01:44,390 So if we are handling numbers which can be having decimal points, then we can use flawed as well as 23 00:01:44,390 --> 00:01:44,800 double. 24 00:01:44,900 --> 00:01:50,450 If it is having a lot of decimal like values after decimal points, then we will be using that. 25 00:01:51,020 --> 00:01:59,160 Then if you are handling that, it goes like names, strings, etc. Then we can use that database. 26 00:01:59,510 --> 00:02:03,920 Then we have more data, which actually we use for storing that. 27 00:02:04,490 --> 00:02:05,900 True or false value? 28 00:02:05,990 --> 00:02:12,650 If somebody says something is true began as saying that medium were true, then that kind of variable 29 00:02:12,650 --> 00:02:14,340 should be having more data. 30 00:02:14,870 --> 00:02:19,280 Then we have string it set new data, which is added in C++. 31 00:02:19,280 --> 00:02:27,080 It was not in C programming language, so spring data types can store a lot of characters to get a parting 32 00:02:27,080 --> 00:02:30,920 gift of gab that I began, or at least not one Garrick that I did. 33 00:02:31,190 --> 00:02:31,490 I. 34 00:02:33,590 --> 00:02:38,020 So here are the popular data types in C++ we are handling. 35 00:02:38,420 --> 00:02:40,610 So here these are the data types. 36 00:02:40,820 --> 00:02:49,280 So if we are like writing a program and if I want to introduce a new variable to the computer, I will 37 00:02:49,280 --> 00:02:50,620 be using a data. 38 00:02:50,780 --> 00:02:53,240 I suppose I want to add two numbers. 39 00:02:53,510 --> 00:02:57,200 And one is I have to know what kind of numbers it is. 40 00:02:57,210 --> 00:03:00,680 So it will be like the ACIDES number. 41 00:03:00,680 --> 00:03:04,930 And just adding two numbers means like five I need. 42 00:03:04,940 --> 00:03:11,540 It's not having any kind of decimal places so I can be glad to integer available so I can use the statement 43 00:03:11,720 --> 00:03:15,170 in a comma b semicolon. 44 00:03:15,470 --> 00:03:23,300 This means like my variables and we can call numbers similarly for each and every day day, which we 45 00:03:23,300 --> 00:03:29,870 use in program each and every variable which we use in program, we should identify the database and 46 00:03:30,110 --> 00:03:33,650 declare those variables at the beginning or anywhere in the program. 47 00:03:33,860 --> 00:03:40,490 So in previously, in the case of C programming language, you should define all the variables in in 48 00:03:40,490 --> 00:03:41,380 the beginning itself. 49 00:03:41,390 --> 00:03:48,800 But when it comes to C++, you have a choice to define the data type anywhere in the program by just 50 00:03:48,800 --> 00:03:50,250 before using that variable. 51 00:03:50,390 --> 00:03:53,110 You have to define its data type. 52 00:03:54,290 --> 00:04:00,800 So here you have the list of data types, and especially today, results are there to specify. 53 00:04:01,280 --> 00:04:05,120 There is nothing associated with the variable that is more data type. 54 00:04:05,300 --> 00:04:07,640 It's quite an empty data type. 55 00:04:07,820 --> 00:04:11,230 It means there is nothing associated with their variable. 56 00:04:11,240 --> 00:04:15,680 Then it's set with that type suspicion data like. 57 00:04:17,660 --> 00:04:21,110 So how are we going to declare any edible, that's what we are showing here. 58 00:04:21,410 --> 00:04:25,550 So we have died for our right to be able to name so it. 59 00:04:27,070 --> 00:04:27,550 Some. 60 00:04:29,150 --> 00:04:29,450 In. 61 00:04:31,130 --> 00:04:32,720 Alien like that. 62 00:04:34,460 --> 00:04:40,820 And we get our show while declaring the variable it means like that variable is not still used in the 63 00:04:40,820 --> 00:04:45,530 program, but we are actually introducing that variable to that computer compiler. 64 00:04:45,740 --> 00:04:52,670 So if you want to give a value to a variable while we are declaring it in Scala initialization, so 65 00:04:52,670 --> 00:04:54,960 we insulates the material in two ways. 66 00:04:54,980 --> 00:05:00,620 One is that after declaration, you can initialize the variable. 67 00:05:00,830 --> 00:05:06,650 Another means like during the declaring it said it, we get initially estimating with so I am if I want 68 00:05:06,650 --> 00:05:14,660 to get a variable card to say which is of integer time and I want to send that answer or I one Gorseinon 69 00:05:14,660 --> 00:05:17,570 value five in it, I can do like this. 70 00:05:17,870 --> 00:05:20,530 So in and I say equal to file. 71 00:05:20,540 --> 00:05:27,070 So that's indexes data type variable and I'm equal to value that design assignment summer. 72 00:05:28,850 --> 00:05:30,320 Now we have constants. 73 00:05:30,320 --> 00:05:35,240 So constants are also variables, but that value will not change in the program. 74 00:05:35,450 --> 00:05:39,230 Once you decide on sending a program, it will remain the same. 75 00:05:39,260 --> 00:05:41,660 We cannot change the value of that function. 76 00:05:41,810 --> 00:05:45,200 If we are trying to change the value, it will result in any error. 77 00:05:45,590 --> 00:05:52,030 So here you have like two ways to declare equal understanding that this using hash defined pre-processed 78 00:05:52,030 --> 00:05:56,390 that we have already started about hashing it set free preprocessor, right? 79 00:05:56,690 --> 00:06:02,970 So it's having a specific meaning which will tell the compare that to include all of that associated 80 00:06:02,970 --> 00:06:05,360 modifiers needed for executing that program. 81 00:06:05,480 --> 00:06:11,420 Similarly, we have another process of not acting that discard hash leaving, so hash defined is used 82 00:06:11,420 --> 00:06:12,770 to create constants. 83 00:06:12,950 --> 00:06:18,140 So if I want to create a Guanzon card by then, I can just write hash define. 84 00:06:20,360 --> 00:06:23,190 By three point one four. 85 00:06:23,510 --> 00:06:29,780 So then it will actually create their clients and by with the value three point four, which cannot 86 00:06:29,780 --> 00:06:30,560 be changed. 87 00:06:31,330 --> 00:06:34,850 Another means using constant keyword Gonski work. 88 00:06:35,060 --> 00:06:40,750 So launched the attack right then the variable name, then equal to that value. 89 00:06:40,850 --> 00:06:43,550 So this is another way of declaring it constant.