How do you scan an array in c #cprogramming #coding #developer #memes #programmer

preview_player
Показать описание
How do you scan an array in c #cprogramming #coding #developer #memes #programmer
arrays in c,how to scan two dimensional array in c progrm,how to scan and print an array in c,array in c language,how to scan an array in c?,arrays in c language,c programming,how to scan and print two dimensional array in c,how to scan one 1-d array in c progrm,c programming arrays,how to print elements of an array in c,how to code an array in c?,how to print two dimensional array elements in c program,c arrays,scan one dimensional array with index in c program, programming memes,coding memes,coding,programming,memes,programming humor,programmer memes,funny memes,funny programming memes,viral programming memes,programming memes status,programming jokes,coding meme,programming meme,coding jokes,python programming,best programming memes,#programming memes,explaining programming memes,computer programming memes,programming memes shorts,programming memes videos,funny programmming memes
Рекомендации по теме
Комментарии
Автор

Simple answer: scanf take the address, since array is already in address you dont need to put & which mean the address of a variable

kxrosen
Автор

Yeah, for those who don't understand: arr is a pointer to start of an int array. So, when you want to access the next element, incrementing the pointer (like arr + 1) basically means moving to the next element's address.

For example:

If arr points to the first element at address 0xFFF10.
Then arr + 1 points to the second element's address.
Under the hood, this adds the size of one int to the address. If an int on your system is 8 bytes*, then the second element's address would be 0xFFF10 + 8.

And in the scanf example, it works because scanf needs the memory address (which the pointer arr provides) where it should store the input value according to the specified format type. I hope that was clear :)

HakanEngin-ol
Автор

If your teacher don’t understand this, they should not be teaching in the first place

ThinkingPear
Автор

Variable name is actually the base in array arithmetic. Hence, no need for & operator.

hajarelalit
Автор

yeah i just had gemini explain the whole meme to me

heyitsyusuf
Автор

Name of an array is a pointing to the address first element.

amirulmh
Автор

That's why i tell array and pointers are same

nishanth
Автор

The real reason i think pointers and arrays are the same with just a little differennce

shashwat-op
Автор

Pointer Arithmetic, Why C Is a Wonderful Language

salvatorebertino
Автор

Student be like there aren't any [] also .

deathdevil
Автор

Damn if the teacher doesn't know such a simple thing you are cooked

lemonhead
Автор

I just hope n is less than or equal to the size of arr.

SLEAZY
Автор

Use of pointer arithmetic, Misra C can suck it

rushabhchoudhary
Автор

In relative condition does one understand endpoints beginnings translations artificial love Congress Congressional alleviation

martymcfryll
Автор

That why do not teach student interpretation stuff 😂. Trust me, efficiency meaning management not logical

trananhkiet
Автор

Guys, preach the gospel before it's too late! God loves you and cares about you, and here is some proof

1 Peter 5:7
"Cast all your anxieties on him, because he cares for you"

Romans 5:8
"But God demonstrates his own love for us in this: while we were still sinners, Christ died for us"

John 4:8
"The person who doesn't love does not know God, because God is love"

Matthew 6:34
"Therefore do not worry about tomorrow, for tomorrow will worry about itself. Each day has enough trouble of its own."

Psalms 118:6
"The Lord is with me. I will not be afraid. What can mere mortals do to me?"

God loves you, and he wants that heaven will be crowded, so please accept Jesus in your heart!

sbayyyy
Автор

They shouldn't be teaching C if they don't know this.

TheAmzngAids
Автор

Ew why use pointer arithmetic in this situation

Blxxy
Автор

Btw this doesnt work you have to multiply i by 4

Blxxy
Автор

Yeah, no...
This would have been legit ansi c if you had written i[arr]

Libellisth
join shbcf.ru