Understanding Arrays in C Programming | Edureka

  Рет қаралды 134,728

edureka!

edureka!

Күн бұрын

Пікірлер: 58
@SmartProgramming
@SmartProgramming 6 жыл бұрын
wao, such a great explanation, very helpful video sir, thank you 👍👍
@edurekaIN
@edurekaIN 6 жыл бұрын
Thank you for watching our video. Do subscribe, like and share to stay connected with us. Cheers :)
@bananaslayer901
@bananaslayer901 2 жыл бұрын
You're amazing!
@nothingtosay4313
@nothingtosay4313 2 жыл бұрын
Watching after 7 years after uploading and this is still incredible ❤️ Thank you ❤️
@edurekaIN
@edurekaIN 2 жыл бұрын
We are very glad to hear that your a learning well with our contents :) continue to learn with us and don't forget to subscribe our channel so that you don't miss any updates !
@innocentcoco7389
@innocentcoco7389 6 жыл бұрын
Helpful great job .. 👍👍
@prekshapatil468
@prekshapatil468 7 жыл бұрын
It helps a lot to me..... Thank U So Much..... 😊😉
@edurekaIN
@edurekaIN 7 жыл бұрын
Hey Preksha! We are delighted to know that you liked our videos. Subscribe, like and share to stay connected with us. Thanks :)
@dmabhishek
@dmabhishek 8 жыл бұрын
This helped me a lot.Thank you!
@edurekaIN
@edurekaIN 8 жыл бұрын
Hey Abhishek, thanks for checking out the tutorial! We're glad you liked it. Here's the entire playlist: kzbin.info/aero/PL9ooVrP1hQOFrNo8jK9Yb2g2eMHz7hTu9. We thought you may find it useful. Cheers!
@khajeshnarayana4407
@khajeshnarayana4407 4 жыл бұрын
Nice video i learnt perfectly through edureka
@nathankidd7595
@nathankidd7595 7 жыл бұрын
Thanks a ton for your help. BTW in the word "array" the emphasis is on the second syllable, "uh RAY."
@edurekaIN
@edurekaIN 7 жыл бұрын
Hey Natham thank you for watching our video. We will definitely keep this in mind :)
@simran8197
@simran8197 6 жыл бұрын
Well explained...I have already subscribed your channel for more such a helpful videos.
@edurekaIN
@edurekaIN 6 жыл бұрын
Thank you for subscribing to us Simran. Stay tuned for updates on our channel. Cheers :)
@kevinnimanda2525
@kevinnimanda2525 4 жыл бұрын
Thank You! This was very helpful and it was very easy to understand.
@edurekaIN
@edurekaIN 4 жыл бұрын
Hey, thanks for the wonderful feedback! We are glad we could help. Do subscribe to our channel to stay posted on upcoming tutorials.
@peiquedq
@peiquedq 8 жыл бұрын
Thank you, this helped me very much!
@edurekaIN
@edurekaIN 8 жыл бұрын
Glad you liked it! Do keep checking back in for more videos. You must also check out our blog page sometime @ Edureka.co/blog/
@emmanuelamoh7181
@emmanuelamoh7181 5 жыл бұрын
This was really helpful man! I understand how to work with arrays now!
@manikantavaddepalli1597
@manikantavaddepalli1597 8 жыл бұрын
Nice explanation thank you
@thelasttimeitookashowerwas7069
@thelasttimeitookashowerwas7069 7 жыл бұрын
Great tutorial+love the fact that you reply to every comments.Also i wad wondering why num's been used here and what exactly is the value of num and to what maximum point does this loop go upto
@edurekaIN
@edurekaIN 7 жыл бұрын
Hey Suman! Yes, we try to remain connected with our viewers. Thank you for acknowledging it. To answer your query: 'num' is used to set a limit to your loop. Over here, your loop is limited to 10 iterations so, the value of num is 10. The lop has a maximum of 10 iterations. Hope you find this useful as well. Cheers :)
@Anuhas_D
@Anuhas_D 6 жыл бұрын
thankss
@curiousbit9228
@curiousbit9228 6 жыл бұрын
That is beautiful!!
@edurekaIN
@edurekaIN 6 жыл бұрын
Hey Curious Bit, thank you for watching our video. We are glad to know that you liked our tutorial. Do subscribe and stay connected with us. Cheers :)
@why_ynwa
@why_ynwa 6 жыл бұрын
Thanks
@SharadGaur0609
@SharadGaur0609 8 жыл бұрын
12:42 how can accessing a value in memory out of range of array size corrupt a memory ?
@edurekaIN
@edurekaIN 8 жыл бұрын
Hey Sharad, thanks for checking out the tutorial! With regard to your query, please go through the below given example: int i; int arr[3]; int main(void) { for(i=0;i
@muhammadjontursunov5097
@muhammadjontursunov5097 8 жыл бұрын
Thank you very much for vıdeo! Great tutorıal
@edurekaIN
@edurekaIN 8 жыл бұрын
+Muhammadjon Tursunov We are glad you liked it. You must also check out our blogs sometime @ edureka.co/blog/
@meetashale9270
@meetashale9270 7 жыл бұрын
Nice explaination
@edurekaIN
@edurekaIN 7 жыл бұрын
Thank you for watching our video. Do subscribe, like and share to stay connected with us. Cheers :)
@GirlGoesWhoopWhoop
@GirlGoesWhoopWhoop 7 жыл бұрын
Hi, I'm unsure as to why when you pass the array through the function you don't need to initialise the variable num? Where does num get its value from?
@edurekaIN
@edurekaIN 7 жыл бұрын
Hi, thanks for checking out our tutorial. When passing an array to a function, we just pass the array name. Array name points to the base address of the array. The function gets the value of the array from that base address. Hope this helps. Cheers!
@nooramieranatashawizan2873
@nooramieranatashawizan2873 7 жыл бұрын
can we just use int a[ ] instead of int arr[ ] in the subprogram of largest number ?
@edurekaIN
@edurekaIN 7 жыл бұрын
+Mighanut mya, thanks for checking out our tutorial! Yes, you can use any other name, and even your name. The only limitation is that the name should not be a keyword(reserve language word) and few other. But there are some rules that are followed while naming variable and the most important one is that the names should be intuitive.But there are a lot of variabe naming conventions that people follow, you can even create your own naming convention. Compiler stores these variable names in symbol table and this symbol table is used during run time for name to memory mapping. The compiler may even discard name provided by you totally and use it's own name internally in symbol table. That is how function overloading works in C++. So, a or arr is all for your ease. Use what suits you better. Here arr gives you a hint that arr variable by name looks like an array. Hope this helps. Cheers!
@ciphergates5596
@ciphergates5596 8 жыл бұрын
AND NICE TUTORIALS.
@edurekaIN
@edurekaIN 8 жыл бұрын
Thanks for the feedback! :) Do follow our channel to stay posted on upcoming tutorials. You can also check out www.edureka.co/blog/ for relevant reading material. Cheers!
@kaiochanx3348
@kaiochanx3348 7 жыл бұрын
what is system("PAUSE") and what does it do?
@edurekaIN
@edurekaIN 7 жыл бұрын
+KaiochanX3, thanks for checking out our tutorial! System("pause") runs the Windows command-line "pause" program and waits for that to terminate before it continues execution of the program - the console window stays open so you can read the output. Hope this helps. Cheers!
@kaiochanx3348
@kaiochanx3348 7 жыл бұрын
+edureka! Oh right, thanks for the information, great video
@ciphergates5596
@ciphergates5596 8 жыл бұрын
hello sir, i am not able to understand that, the variable b is of int type then why it will take 4 bytes as you explained above.
@edurekaIN
@edurekaIN 8 жыл бұрын
Hey, thanks for checking out the tutorial! With regar to your query, the variable b is of type int, but it is an array so the size of the array will be (size of int) * (size of the array)= (4*5)=20 bytes. Hope this helps.
@ciphergates5596
@ciphergates5596 8 жыл бұрын
GOT IT. THANKYOU
@SharadGaur0609
@SharadGaur0609 8 жыл бұрын
for 16-bit compiler needs 2 bytes memory and for 32-bit compiler int need 4 bytes memory. 16-bit compiler ==>> Turbo C 32-bit Compiler ==>> GCC or Visual Studio is this what you were asking (why 4 bytes and why not 2 bytes) ?
@ciphergates5596
@ciphergates5596 8 жыл бұрын
Thankyou .
@edurekaIN
@edurekaIN 8 жыл бұрын
Hey Sharad, thanks for checking out the tutorial! With regard to your query, it depends on the platform. It is implementation-defined. It can be 2, 4 or something else. It can be 2 bytes then there doesn't comes the use of 32-bit to increase the size of int it is upgraded to 32-bit. Could you please elaborate on your query to help us support you better? Cheers!
@sameerpal2474
@sameerpal2474 8 жыл бұрын
int take 2byte memory. not 4byte¿¿¿
@edurekaIN
@edurekaIN 8 жыл бұрын
Hey Sameer, thanks for checking out our tutorial! The size of an int is really compiler dependent. Back in the day, when processors were 16 bit, an int was 2 bytes. Nowadays, it's most often 4 bytes on a 32 bits system or 8 bytes on 64 bits system. Still, using sizeof(int) is the best way to get the size of an integer for the specific system the program is executed on. Hope this helps. Cheers!
@surajpai104
@surajpai104 8 жыл бұрын
do you have java video lectures
@edurekaIN
@edurekaIN 8 жыл бұрын
Hey Suraj, thanks for checking out the tutorial! Here's the link to the Java tutorial playlist: kzbin.info/aero/PL9ooVrP1hQOFR25JoQW3h3n5pBs77e6KU. Cheers! :)
@shahanaalam7791
@shahanaalam7791 8 жыл бұрын
niceee vide0
@edurekaIN
@edurekaIN 8 жыл бұрын
Hey Shahana, thanks for checking out the tutorial! We're glad you liked it. Here's another video we thought you might find useful: kzbin.info/www/bejne/d4CskI2lh85rrK8. Cheers!
@bharatshankar5
@bharatshankar5 8 жыл бұрын
why u write system("pause"); please explain clearly
@edurekaIN
@edurekaIN 8 жыл бұрын
Hey Bharat, thanks for checking out the tutorial! About your query, system("PAUSE") is used to stop the terminal from exiting quickly before you can see the results. If you use system("PAUSE"), the console window stays open so that you can read the output. Hope this helps.
@surajpai104
@surajpai104 8 жыл бұрын
why have you intialized a[10]=0
@edurekaIN
@edurekaIN 8 жыл бұрын
Hey Suraj, thanks for checking out the tutorial! The statement a[10] = {0} ; at the beginning of the main() initializes all the elements of array a to 0 so that none of the entries contain garbage values. Hope this answers your query. Cheers!
Understanding Basic Algorithms in C Programming | Edureka
53:28
array vs &array Pointers Difference Explained | C Programming Tutorial
17:38
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Understanding Strings in C Programming | Edureka
7:34
edureka!
Рет қаралды 10 М.
How I program C
2:11:32
Eskil Steenberg
Рет қаралды 802 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,5 МЛН
Working with a Matrix/2D Array in Your C and C++ programs.
23:40
Jacob Sorber
Рет қаралды 37 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 105 М.
Understanding Ownership in Rust
25:30
Let's Get Rusty
Рет қаралды 278 М.
String In Char Array VS. Pointer To String Literal | C Programming Tutorial
9:58
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 344 М.
Pointers in C for Absolute Beginners - Full Course
2:04:29
freeCodeCamp.org
Рет қаралды 264 М.