#24 C Pointers and Arrays | C Programming For Beginners

preview_player
Показать описание
#24 C Pointers and Arrays | C Programming For Beginners

In the last video, we learned about Pointers in C. We learned about working with memory addresses. Now, we will learn to use pointers to work with arrays. We will see examples to access elements using pointers and also to change array elements using pointers. So this video will be very helpful to understand the use of pointers and array with each other much more clearly.

~
Resources:

Timestamps:
00:15 - C Pointers and Array
05:15 - Access array elements using pointer
06:43 - Change array elements using pointers
08:40 - Programming Task
09:34 - Quiz

~

Revise your learning using our C App

Find Programiz elsewhere:

#programiz #pointers #array #cprogramming #learnc #cpointers
Рекомендации по теме
Комментарии
Автор

🔥Finding it Damn Hard to Understand C Programming?
Learn to code—the right way—with interactive lessons, quizzes & challenges. Build a strong programming base; it's IMPORTANT!

programizstudios
Автор

I love studying with programiz, it's explained so simply :) I'm currently studying for my programming exam that's coming up, so thank you for the free lessons!

jessicabuehne
Автор

ages represent the memory address of the zeroth array element. ie, ages+0 equals &ages[0]. Option D is the correct answer

shijothomas
Автор

Amazing, the way you teach is incrible! I got pointers now, I admiti I had some dificult, thank you!

rodolfoc.nascimento
Автор

You are making good videos. I am thankful to you for this help. This is avery easy way to learn C language from very beginning.

AIVerse.
Автор

Superb! I've liked the explanations for they are well understood.Thanks for making the c programmming knowledge accessible to everyone in need of it.

ycdpsjw
Автор

This video is great, the last programming task makes it perfect.🛐

vissakanvj
Автор

Can't wait, so curious about ur next series

nandishnandish
Автор

#include<stdio.h>

int main()
{
int arr[5] = {34, 12, 21, 54, 48};

int largest = *arr;

int i=0;

for(i=0; i<5;i++)
{
if (largest <*(arr + i))
{
largest = *(arr + i);
}
}
printf("Largest element in array is %d", largest);
}

akshaybagalkotkar
Автор

🎉❤❤❤i love the experience here. Keep it up ma'am

jonathanmawuena
Автор

Plz try to upload the videos faster can't wait to learn any way ur teaching skills are mind blowing

sunnypreetham
Автор

Never thougth I would finally use pointers and make the challenge in this video

rodolfoc.nascimento
Автор

When I was in college no internet resources were available. To search something simple as function pointers or array pointers we had to read books from Library. It was a tedious process.
A college project could have taken months to complete.
I love how modern education has evolved and become so interesting and simple.

phoneix
Автор

Wonderful video! i think for the quiz it is D. &ages[0] because its like what was said where if you use just the name of the array it points to the head by deafult

#include <stdio.h>

int main() {
// Write C code here
int arr[5] = {34, 12, 21, 54, 48};
int largest = *arr;

for(int i = 0; i<5;i++){
if(largest < *(arr+i)){
largest = *(arr+i);
}
}

printf("Largest Element: %d\n", largest);

return 0;
}

stealthy_doctor
Автор

Quz answer is option D.
#include<stdio.h>
int main()
{
int arr[5] = {5, 10, 15, 20};

int largest = *arr;

int i=0;

for(i=0; i<4;i++)
{
if (largest <*(arr + i))
{
largest = *(arr + i);
}
}
printf("Largest element: %d", largest);
}

sushilgbp
Автор

I don't understand how you make it so easy like this. Thanks a lot

iufdise
Автор

Ages represent the first element in the array, which is ages[0]

emmanueljulius
Автор

mam i request you upload the series on daily basis....

likithm
Автор

best tutorial for freshers >> beginners

markbarasa
Автор

Task:

#include <stdio.h>

int main() {

int arr[5] = {34, 12, 21, 54, 48};
printf("First element in the array before change: %d\n", arr[0]);

int largest = *arr;

*arr = 65;
printf("Fist element in the array after the change: %d\n", *arr);

for(int i = 0; i < 5; i++) {

if (largest < *(arr + i) ) {
largest = *(arr + i);
}
}
printf("Largest number of the array: %d\n", largest);

return 0;
}


Quiz answer: ages[0] represents the first element of the array, ages[1] represents the second element, and so forth, up to ages[4], which represents the fifth (and last) element of the array.

light-warrior
visit shbcf.ru