Now, p = 1012( or it points a[3] ) *p = 2; means value at p or at address 1012 is 2; so, now a[3] = 2; *p will print 2.
@omnamahshivaya70812 жыл бұрын
It will point for a[1] as mam has given p=p+1
@madhavan.12092 жыл бұрын
@@omnamahshivaya7081 she already changed the value in *p =1008 (p=p+2) now p+1 =1012 the *p is pointing & of 1012 the & has value a[3]=10 then changed to 2
@ananyaghosh64022 жыл бұрын
what was internal pointer Again?
@NTuRN112 жыл бұрын
@@ananyaghosh6402 i think it points to the base address of the variable,,,,like in this code a is the internal pointer who is pointing to 1000(base address of the variable)...........nah bro im so confused...😭
@mhsujal417 Жыл бұрын
2 print ❤
@ashishp373 жыл бұрын
Now I'm not attending my college lectures of Programming in C. I'm Attending the lectures of this channel. Mam you teach far far better than My college professors. Indeed I wasted my money in my college to learn Programming but fact is I'm learning Programming from you mam that also toataly free.
@harshvb2676 Жыл бұрын
Us moment bro
@SandeepKumar-gu1pfАй бұрын
me too bro
@bawaabdulsilas3681 Жыл бұрын
Before the line p = p + 1; Pointer p was pointing to this address [1008]; So when the line p = p + 1 is executed, then p will be pointing to the next address which is [1012]; On the next line *p = 2, reassigned the value at address [1012] which is 10 to 2; Finally, address [1012] now stores 2, and the statement printf("%d ", *p) will print 2 on the screen.
@hyperspacecode Жыл бұрын
Correct for 3 points.
@yashhokte10203 жыл бұрын
17:56 may be a[3] stored the value 2 and *p will print 2 value
@anandsinha22892 жыл бұрын
After p=p+1; As we see it is giving the address of 1012 and it is storing 3 so as *p=2; Now at address of 1012 value 3 will be assigned
@navneetrampal39772 жыл бұрын
Actually ma'am you don't believe I took online subscription to learn coding but still I am here and watching lectures of pointer there are the n numbers of videos on you tube but the concepts that you clear that's really amazing thank you by heart tomorrow is my exam
@GursandeepSingh-bl4qq Жыл бұрын
Paper kisa gya apka 😊
@JaydeepTrivedii Жыл бұрын
@@GursandeepSingh-bl4qqbahut jaldi puch liya 😊
@khushichoudhary5996 Жыл бұрын
p is a pointer and if *p=2 then in pointer p, 2 is not going to store because p is a pointer and pointer can only store address not any integer value.
@faithfullyfactual Жыл бұрын
current value of *p is now 2. hence printf("%d", *p); would print 2. That also means that a[3] has also been modified to be 2.
@Riyaaa6773 жыл бұрын
I guess value of a[3] will b modified to 2
@ginilance7427 Жыл бұрын
It will be modified to -8. 1 is at index 0. 4 is at index 1 2 is at index 2 -8 is at index 3 0 is at index 4
@chiragmaloo7504 Жыл бұрын
@@ginilance7427 wrong hai
@MitikuMitihans8 ай бұрын
Hey how are you where are you from
@Jardaani_Jovonovich7 ай бұрын
@@MitikuMitihans chaduvukora gaadidha...
@O_bi_to76 ай бұрын
Probably
@tirthtanna77713 жыл бұрын
the value of *p will be 2
@tirthtanna77713 жыл бұрын
Mam you are the lifeline for many students
@satyavansharma42133 жыл бұрын
Nice mam thanks for this type videos i pray to God your chennel get the 5 million subscribes
@anshchaudharyvlogs2 ай бұрын
16:15 Answer is 2 because: int a[5] = {0, 1, -1, 10, 11}; int *p = &a[0]; printf("%d", *p); //prints (Zero) 0 p = p + 2; printf("%d", *p); //prints -1 p = p + 1; //p=1008 + 1*4 = 1012 *p = 2; //value at address 1012 i.e 10 will be assigned/replaced by 2 printf("%d", *p); //prints 2
@arshuarshad155111 ай бұрын
16:46 if we write p+1 than it will not give error it will give base value of array element which define before this statement like this *p=&a[0];
@etceterafans23453 жыл бұрын
*p=2; printf("%d", *p); it will give the output of 2
@vinitkumar.35883 жыл бұрын
You are the best teacher ma'am
@Busy_girl-mq2cf10 ай бұрын
p=address of 3 and *p means that the value in which the pointer is pointing will change to 2 . So the out put will be 2
@SumangalaSipoy-tj3ey8 ай бұрын
p+1; value is -1 itself mam
@vimala78303 жыл бұрын
Thanks a lot mam for your very clear explanation ☺️
@imadbenmadi2 жыл бұрын
thank u very mush , i was having a big problem in understanding pointers and work with theme . its a really simplify explication thanks for all your hard work
@vickyvignesh38443 жыл бұрын
mam waited for pointers for a long time thanks for start uploading mam!!.please post all videos as soon as possible mam.please try to upload 2 videos per day mam.Thank you mam!!
@yannamsettiaishwarya74482 жыл бұрын
int *p=&a[1] is it possible mam..or we should give only for base address..?
@abdulrahimjalloh363 Жыл бұрын
p=p+1; *p=2; printf("%d",*p); .............Since P has already pointed to 1012, it means the value at 1012 will be changes to 2.
@engineernijo953 жыл бұрын
maam which application do you use to compile programs if you don't mind send me the link to download
@maryannemuthoni538810 ай бұрын
p + 1; printf("%d", *p); *p will still be value of the first element 0, if one wanted it to point to the second element it should be p = p + 1; The second question: (This is if we are assuming p points to the first element p[0]:) p = p + 1; p will not point to the second element *p will be equals to one then when you do *p = 2 the value for the second element p[1] becomes 2
@priyeshmalviya18862 жыл бұрын
Mam if pointer has no data type then why its a need to use format specifier of related data type while using printf.
@mdmonisali91773 жыл бұрын
Mam please explain about enumerated data type
@devayanirajendran40052 жыл бұрын
Pls anybody explain if I get input from user by using for loop thn I store address of a as *p=a[i ]
@vanshikagarg7586 Жыл бұрын
output will be : 0 -1 2
@freefiregamer076 Жыл бұрын
The way of explaining it's easy for me
@AvinashKashyap-ux9ch Жыл бұрын
0:53--2:33 promotion. Skip this part.
@brundar8603 жыл бұрын
Hlo mam I think if you take only the theory party , that would be enough no need of practical
@tmr19473 жыл бұрын
mam how to start gate preparation in my 1st year. will you plz tell me tips and best online resources🙏🙏🙏
@williemungai19542 жыл бұрын
*p will print out 2...the value of a[0] will be changed to 2
@atomsherlock66473 жыл бұрын
Hi, Mam, may games as exercises would complete perfectly your lessons ? Thanks anyway.
@anujeetkunturkar7803 жыл бұрын
It will print 2.
@yannamsettiaishwarya74482 жыл бұрын
i have a doubt that..for integer 2 bytes.. but mam is telling that 4 bytes.. i think its iong int.. why we took that..?
@chetansingh553 жыл бұрын
Thanks mam. These videos are too helpful to me. Thanks for frequent uploading of videos❤
@dineshkantineni62323 жыл бұрын
mam please discuss about storage classes your videos is very helpful to me
@akhilmittal32832 жыл бұрын
padhke like bhi kr diya kro yrr itti acchi mam hai
@codingworlds7243 жыл бұрын
last question answer is *p = 2 then it will show 2 answer it will change the value
@SravanKumar-uc6qt3 жыл бұрын
Respected madam zi, Pointer is different statement function Arthemetic is different statement function How can you write this programm May it not possible, May be it will possible is coding, development data, algorithm
@okunoyesouleiman9117 Жыл бұрын
can I download the play list in one video ?
@tanmay50704 ай бұрын
ma'am, int takes 4 bytes in a 64 bit machine and 2 bytes in a 32 bit machine
@SumangalaSipoy-tj3ey8 ай бұрын
p=p+2; value of *p=-1 p=p+1; value of *p=10 *p=2; value of *p=2
@kamalraj7526 Жыл бұрын
start 2:32
@l.lawliet46362 жыл бұрын
Value of *p will finally be 2 Value stored at 1012 will be replaced by 2....
@bainaboyinakarthik99459 ай бұрын
Mam pointers topic ,I feel some difficult
@Vemon5647 ай бұрын
I fell array string is hard to understand😉
@lifemalayalamyoutube71925 ай бұрын
Think simply, pointer is just a variable(means, a location in memory).Unlike usual variables which store a value, this pointer stores the address of other variables. Think about the example, to know your address, one can ask your relative. Your relative is like a pointer variable😊
@devSackey Жыл бұрын
it will print 2; Thanks for the free explanation
@meme_engineering45213 жыл бұрын
Kaash mere school time pe aapka channel hota 😭
@megh50132 жыл бұрын
Thanks a lot Mam for this lecture!!!
@vishalG777 Жыл бұрын
Why are performing arithmetic operations on pointer just to access the different values of arrays, we can simply access different elements using the index of that element!
@mukeshnath1080Ай бұрын
Tbh she's so gorgeous 🥰
@Mr_Kumar_Sai Жыл бұрын
2 will print in the address location 1012.
@intellectualclasses18573 жыл бұрын
Ma'am do you take live classes? Please reply me Ma'am!
@smrfan23343 жыл бұрын
No
@motemontero55923 жыл бұрын
Please madam after completing this c programming we need GTK+ FOR C PROGRAMMING
@meghasinha17063 жыл бұрын
Thanks for your efforts mam
@nehamaheshwari15023 жыл бұрын
After competing c lang...mam plz upload the video on java...
@Cm-zc2zx11 ай бұрын
Thank you so much mam ... Yhi to sikhna tha muze 😊😊
@prashantpatel46363 жыл бұрын
Mam abhi kitne video aur aayenge c language ke??... Means kitne topics remaining hai?
@Shylakarigowda-zq5ho Жыл бұрын
Ans=2
@softdevrajanikant37502 жыл бұрын
Integer are stored 2 byte not 4 byte
@kwameanati Жыл бұрын
The value of *p is 2.
@ManjuSingh-hz8tr3 жыл бұрын
Mam. I want to join your Ur class ...but mujhe samaj nii aara kese join hoga to plz help kr do
@DailySongs122 жыл бұрын
in array a[2] is update as 2
@python-20233 жыл бұрын
Mom some of your videos don't have subtitles please add subtitles in all of your videos Thank you
@dominicamaria28973 жыл бұрын
18:53 error: assignment to expression with array type p=p+2, a=a+2; ^ It is showing error madam.👆
@venkatarohitpotnuru382 жыл бұрын
yes you cant operate on constant pointer a
@tejaskharde91223 жыл бұрын
24:41 after changing *p value what happened if we print whole array did i lt print like this {1,4,34,-8,0} or it print original array
@TheGoldFarhad3 жыл бұрын
No, only the array we are on will change its value. So in this case we are on a[4]. So a[4] = 2 now. when printing all arrays we will get " 0,1, -1, 2, 11 "
@sourabhpandey27062 жыл бұрын
Error hai *p=2 but pointer ka datatype define hi nahi hai *p means pointer variable .....
@phanimanojoleti66062 жыл бұрын
Class is nice mam.but on pc we are not able to see the letters .please try to zoom it mam
@Sunrise-Cricket-2358 Жыл бұрын
It will give 2, because we have assigned it.
@DilkhushKumar-dc8ed Жыл бұрын
Is it write :- int a=3; int *p=&a; p=p+a;
@7VNMusic. Жыл бұрын
suddenly, mujhe c language mai interest aane laga
@itzharivlog2733 жыл бұрын
Make a python tutorial
@Venkateshprabhu52 жыл бұрын
Thanks a lot mam for your clear explanation
@barathkumarg34613 жыл бұрын
Very useful for gate mam
@kushimthakona92883 жыл бұрын
start functions concept also in c mam
@ashutoshpatidar49032 жыл бұрын
Value at 1000 will be change to 2
@yashahuja15502 жыл бұрын
no bro, value at 1012 will be changed to 2
@067_sharadchandra33 жыл бұрын
18:02 *p=2 the output will be 2 only,as we have change the value of pointer variable p.
@walkwithme_P623 жыл бұрын
No It's wrong It's give Error
@chessforlearners58733 жыл бұрын
if p=a+2 ...then what
@layson8072 Жыл бұрын
It will print => 2
@ChillOutinLove3 жыл бұрын
Ma'am p is pointer and size of pointer is 8 , then how we can't do p = p + 2 , p = 1000 + 2*8 p = 1016 Ma'am pls clear my doubt
@guddititejesh54263 жыл бұрын
You can't write 2*8 instead of this you write 2*4 because it is a integer type it contains 4 bytes..
@SwetaKumari-ps2rf2 жыл бұрын
Pointer is not a data type ...so u cannot multiple with 2..here data type is integer .so we can use 4 intead of 8
@SandeepKumar-vk5fb3 жыл бұрын
Dsssb tgt 2020 ka paper dakhna.. Or possible ho to solution provide karna
@arundharekar4984 Жыл бұрын
i guess the 3rd element of array is replaced by 2.... then it will print 2.
@GalaxyCookies762 жыл бұрын
Hatts off Big fan from Pakistan
@satyajitmanna85012 жыл бұрын
*p=2; korla a[3] ta 2 store hoba .
@rajaarvapalli75363 жыл бұрын
Please teach devops
@rashmikoiri88602 жыл бұрын
Good evening ma'am, Ma'am when I use increment for pointer the address of the array elements Is increased by 2 not 4.why?
@Mrfactzzz-t4r2 жыл бұрын
Depends on your computer i think
@kaushikr81332 жыл бұрын
it depends on the processor.... u must be using 32 bit compiler where int size is 2 byte.
@NishaSharma-kl3tp2 жыл бұрын
@@kaushikr8133 not 2 byte it will be 4 byte ...if u have 16 bit processor than it will be 2 byte
@ParamitaDey-bi1mg3 жыл бұрын
Can anyone tell me what is "%u" stand for? I know "%d" is format specifier of integer And I know "%f" is format specifier of float but what is "%u" symbol means?
@Swee-133 жыл бұрын
It's for unsigned integer!
@ParamitaDey-bi1mg3 жыл бұрын
@@Swee-13 can you explain this term ?
@Swee-133 жыл бұрын
@@ParamitaDey-bi1mg "%u" is format specifier for unsigned integer just like "%d" for signed integer (signed integer means all the +'ve and -'ve values whereas unsigned integers are only +'ve values)
@ParamitaDey-bi1mg3 жыл бұрын
@@Swee-13 Okay thanks a lot for the explanation
@ParamitaDey-bi1mg3 жыл бұрын
@@Swee-13 11:09 I cannot understand the use of null pointer .. If we use null pointer then also if program is crashing then why to initialize ptr with null pointer ? Can you say me this ans ?
@lyricals816 Жыл бұрын
You are amazing mam
@balawizard65973 жыл бұрын
Mam do more videos on DAA subject
@balawizard65973 жыл бұрын
@@Peace-re8qt there is nothing dude
@learningwithankit87013 жыл бұрын
First one for first time ❤️❤️❤️
@ashishp373 жыл бұрын
Learning with Ankit what is your channel about
@learningwithankit87013 жыл бұрын
@@ashishp37 it covers all latest coding questions asked in different companies