Return to site

Learn SEO and Social Media marketing from the Top SEO Company in USA

So we have now seen the different kinds of variables. And the next thing that we should know is that we can define what kind of variable that I'm going to create. OK. What I mean is that if I want to create an integer and if I wanted to create only an integer I can say well my in your with a column and say what kind of type do I want in. For example, Lean SEO and Social Media marketing from the best Top SEO Company in USAi, for in C you're now e cools to something like. So I'm very sad you actually understand when I assign the value of to X or any variable but if I want an integer but only an integer I can just define this with this method right in here. I can say while our as a double. OK. And it's going to be equal to. And as you can see it gives me error what the error it says that we expect at all. But you give us and in SR. So I have to say Phyfe points to make it double

Top Digital Marketing Company in India

.
 
Right. So as you can see I have prevented it's rare to be an integer by mistake. I have to give it a double value. So maybe our user will impart some value and if I want to correct it into a double or integer or a string or anything digital agency may have to redefine the kinds of a variable that I want to create like in this case I want our to be double not an integer.

broken image

OK, so I think you now understand the difference between pre-defined or not. I can do this in streams as well. Right. I can say well my name is going to be a string and it's going to be LARUS. So this is the same thing best Top SEO Company in USA with the same ball. My name ECOs too large but I am redefining the type of here type of the table here and I can do this in the Boullion as well. Obviously a. Please note that not every time we are going to have an initial value in most of the cases a user will provide some values. So we're going to use this pre-filing kind a lot in our application is our projects and it will help us to properly organize our code and work with rebels effectively.

K in this lecture we're going to learn about race. So we're going to use arrays a lot in our programs in our applications. So while our area. So let me just start by typing erasing here. So maybe the name gives you some clues. We are going to Lean SEO and Social Media marketing from the best Top SEO Company in USA hell and are in which we can store some data. So we're going to store a set of variables in our race. Think of this like this. You have social media where you have thousands of users and you want to make some changes in a real user.

So rather than dealing with these users separately if you know how all the users in an array it's going to be much easier for you to perform some changes you perform the changes to the rates. So you just apply the changes with every element of those are. So add this race can actually contain some spraying some in years leans and every Lean SEO and Social Media marketing from the best Top SEO Company in USA other stuff. OK. It's not limited to one kind or one variable or fit but it can contain every kind of variables and the arrays will make life much easier for us when we try to develop something in coupling. So maybe I want to create an array of integers or maybe I want to create an array of strings. How do we do that?

Actually, we have several methods in order to create arrays. I will show you the first one I can say of my array. OK. So I'm creating a variable and this will be an array list of. Or maybe the other options you like. You can see all the options actually here Lean SEO and Social Media marketing from the best Top SEO Company in USA as we can start. You can create byte array double Errey flawed array into every everything that we have learned in the previous lectures K and you can create AB and every array of months for example and we will start by creating area of moles actually and with them those parentheses you will have to angler parentheses you will have to specify the kind that you will put into the array as you can see Saiz type.
 
Xpect It's like if you want to put some integers in there array you just type in if you want to put some strings. You can just put the string in here and you're not actually done with the array of months because it asks an integer in here Lean SEO and Social Media marketing from the best Top SEO Company in USA as you can see from the warnings and integers specifies the size of the era. So how many elements you want to put in there alike million. I know you have to specify the size from the beginning. If you choose to create your favorite array of months or so, later on, I will say my Airey and my are file opens those parentheses here

Top Best Dallas SEO Agencies

.
 
I have to specify in that case. So the index starts with. The first element is going to be James I will specify this by saying My area is open next K and it's going to be first and my everyone is going to be equal to LARUS. And this second is going to be church And finally the turn of actually turn next. But the fourth element is going to be up. And if you don't Lean SEO and Social Media marketing from the best Top SEO Company in USA know who's who are these people these are the members of Metalka. OK. So if I say the print line I are and it will ask me. In that case, again let's say two. Let's run this and see what it gives us as an output. OK. Let's see. It gives us Kirk because of the third member bats in the second the next. The third member is the clerk. So by this, you can add and retrieve members of a race list Sepehr and continue within the next lecture with Aries K.