Today is March 1st which is your birthday wish your a very happy birthday🎂🎂the best programming teacher on youtube
@Masti.Wallah8 ай бұрын
Ur birthday is also come on 1st March!
@mdparvezquraishi84123 жыл бұрын
Mam you deserve the word "Teacher" !!!!
@coding14153 жыл бұрын
kzbin.info/www/bejne/pYjXmq2lrL-MeMU
@abishekhrajendhran81572 жыл бұрын
Perfectnaa!
@RAHULRAJ-nq8mw2 жыл бұрын
world teacher not word
@meme_Overflow2 жыл бұрын
She is a teacher indeed lol!
@dornalameghana19722 жыл бұрын
yes
@chinweokwugiftchiedozie1587 Жыл бұрын
c = *q; *p = 20; Output would be c = 9 and a = 20. While p = the address of a in a hexadecimal form
@SandipBhattacharya Жыл бұрын
Great video, thanks, Jenny. So, there are two pointer operators: * and &. The & is a unary operator, called “Address of” or “Reference operator” that returns the memory address of its operand. For example, j = &i; assigns the address of i into j. This address is the computer's internal location of the variable in memory. It has nothing to do with the value of i. You can think of & as returning "the address of". Therefore, the above assignment statement can be expressed as "j receives the address of i". The second pointer operator, *, called “Value at address” or “Dereference operator” or "Indirection operator" is the complement of &. It returns the value located at the address that follows. For example, if j contains the memory address of the variable i, k = *j; copies the value of i into k. Hope that was helpful. :)
@chidiebereemereuwa9306 Жыл бұрын
Excellent explanation
@sparkx1810 ай бұрын
Yes Thank You 🙏❤️ Nice Explanation 🙏❤️👏
@SumitKumarofficial362 жыл бұрын
C= 9 a= 20 p=ADDRESS OF A IN HEX FORM
@herohera3497 Жыл бұрын
you summed it perfectly...but why have to written c
@universe449 Жыл бұрын
Here value of a is incorrect
@sakibishraq221 Жыл бұрын
@@universe449 why??
@jayaramkumar5148 Жыл бұрын
They didn't declare a value of C then how will you assign the value of C is 9?
@ny_reve Жыл бұрын
Could you please explain to me, why p will be the address of a (in hex form)? why specifically in hex format?
@19_jothikams233 жыл бұрын
Ans C=9 a=20 P= address of a in hexadecimal format
@anuragmalviya23973 жыл бұрын
Value of a might be 10 only as ma'am has written %d then a and in the starting of prog value of a is 10.
@praveensamuel80833 жыл бұрын
here a=*p, so the value of a is 20 only here we are assigning new value to *p so the value of a is 20 ... correct me if I'm wrong 😶
@keenkumar51342 жыл бұрын
*p= 20; i.e value at address of a(here 1000) so *(1000) = 20 or simply a= 20
@neelirahul78922 жыл бұрын
@@praveensamuel8083 bro a=*p is not declared at all How can you say that it's out put is 20 . It's 10 for sure
@juryrigging2 жыл бұрын
@@neelirahul7892 Nope, a = 20. Look again at the second original printf statement: printf ("a = %d", *p) , 10 It's an instruction to print "a =" value of *p. It was written to show you that this is so, even though it isn't formally declared. a = *p is inferred from p = &a: a = 10, p = &a p points to the address of a (&a). *p points to the value held at &a. &a is the location that holds the value of a. *p points to the value of a. a = *p *p = 10 Both a and *p are the same data stored in memory at &a, so cannot be two different values. As long as p = &a, for *p = 20 to be true it must override a = 10. If you don't understand this you can accidentally overwrite your variables when using pointers.
@Unknown-cc6wc2 жыл бұрын
Best teacher of computer ever. Keep it up👍
@shinyrao27862 жыл бұрын
As we taken c=*q which means *q gives the value of b. Because q=&b; *q = value of b. Therefore the c=b; C= 9.
@741ibrahim22 жыл бұрын
shiny rao u rocked !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@mukeshjaiswal80792 жыл бұрын
Right
@AkashDixitShorts2 жыл бұрын
Yes
@bibeksingh21052 жыл бұрын
Yes
@saifshamsi40652 жыл бұрын
You are wrong
@udaysinghrana57252 жыл бұрын
c=&q which means c=*(&b) value at memory location of variable b. *p = 20 this means *(&a) value 20 will be stored at variable a and will pointer will point to address of memory a
@bisusiddharth6942 Жыл бұрын
Absolutely, if we use *p or *(&a).
@lokeswaripanchireddi-z6l9 ай бұрын
Mam I like your way of explaining the subject to students 👌, you are the best programming languages teacher for me......
@suryakant79772 жыл бұрын
Best teacher of computer ever.
@AyushSharma-li1kn3 жыл бұрын
Best teacher I have ever seen in my life😃😃🙏
@_kucial_2 жыл бұрын
Kaha se ho??
@john_avernia2 жыл бұрын
I'm in the middle of doing my CS course, and this helps me a lot on understanding pointers (which apparently is a very hard subject that even the veterans hates). She's a great teacher.
@beneelohimhub Жыл бұрын
The printf("C = %d, c) will give us 9, the printf("a = %d", a) will give us 20 and the printf("%x", p) will give us 0x8000.
@heysuraj-ik1rd Жыл бұрын
correct
@beneelohimhub Жыл бұрын
@@heysuraj-ik1rd Thank you...
@nandinil8723 Жыл бұрын
How pls explain a and p values
@beneelohimhub Жыл бұрын
@@nandinil8723 p is storing the address of a, that is it has a direct access to whatsoever value that is stored in a, so when you dereference p, what you get is the direct value of a, so dereferencing p and giving it a value of 20 is the same as updating the value stored at the address of a, which initially was 10 to the new value, which is now 20. I believe you understand it now?
@beneelohimhub Жыл бұрын
@@nandinil8723 While p is the hexa-decimal value of p, that's the hexa-decimal value of 20.
@Vikram-b10 ай бұрын
Thanks mam me 5 din se smjh nhi pa rha tha pointer apka video dekha smjh agya
@helloworld20542 жыл бұрын
For second question it's not clear whether ma'am had declared the value of a as 10 or 20. If you declare value of a as 10 then the output will be 10, if you declare it as 20, output will be 20. (run the code on your PC to verify)So value of a cannot be updated using *p. Whatever the value of a is declared first that will be printed. And for the third one it will print address of a in hexadecimal form
@chidiebereemereuwa9306 Жыл бұрын
according to the above block of code: int a =10, b = 9; int c; int *p,*q; p=&a; q=&b; // the pointer 'q' declaration here means that the address-of 'b' is assigned as // the value of q c = *q; // here is the declaration of c to *q or &b. This means that using the indirection // operator or dereferencing * operator: the value of the variable is accessed. // in this case the variable is 'b' *p = 20; // this will manipulate the value of the variable which p points to: 'a' // 'a' variable was initially 10 now value will be '20' printf("c = %d",c) // the output will be exactly the value at variable 'b' printf("a = %d",a) // the output will be the current assigned value to *p which is 20 🏑🏑i hope this was helpful to someone to understand better the output of c.
@swapnapanuganty3489 Жыл бұрын
Nice explanation, Just wanted to add in the line c = *q; it basically means that c = 9; because dereferenced q is pointing to the value of b which is 9.
@chidiebereemereuwa93069 ай бұрын
Yea: exactly.. thank you. c = 9
@PaulineR-xs3kx8 ай бұрын
understood . thanks
@Aditya-sn4le Жыл бұрын
Ma'am you are literally the best teacher ever!!!!
@Aditya-sn4le Жыл бұрын
No one can beat u in being the best teacher ever for C programming.
@jxtin1007 Жыл бұрын
very beautiful teacher.
@GEORGESTEPHENTHARAKANB23CS21210 ай бұрын
truely. that itself keeps us hooked 😅
@theshashankgaming1231 Жыл бұрын
mam thanks lot your teaching style is very awesome slowly slowly helps me to understand all the topics thanks a lot mam you are best
@kocengineering7693 жыл бұрын
Mam c=9 only As you told us to comment on C=*q So it must be 9 In the program while you were running you have given C=*p Which will give a value 10 I got it mam Thanks
@Pavansgame2 жыл бұрын
C=*q That means it should print value of 'C' but where Is C value
@nasirkhatib3836 Жыл бұрын
Best teacher of computer in india
@PavaniTirumani-p7i2 күн бұрын
C=*q ,*q represents the address of b in which b value is present and print the value c= 9
@ChillOutinLove3 жыл бұрын
a) c = *q , then value of c is 9 b) *p = 20 means value at (&a) is 20. c) value of p is address of 'a' in hexadecimal form.
@tomcruise42932 жыл бұрын
Thanks bro for this easy way
@alaharianuhya95232 жыл бұрын
Can you pls tell me how the value of a is 20
@ummesalma6669 Жыл бұрын
@@alaharianuhya9523 we used there indirectional operator that is * which prints the value of 'a' at address of 'a' (As we already declared above that 'p' stores the address of the variable 'a')
@iAmAjayTeli2 жыл бұрын
Mam you are amazing I always watch only your video when i don't understand in my college You are better than my college teacher
@moizawan18079 ай бұрын
1-- c=*q; this will assign value of memory address that is stored in q so c will become 9 2-- a=10; *p=&a; *p=20; this time value 20 is assigned to a variable and its orignal value is overwritten by this
@ronycb71682 ай бұрын
c will be 9 and a will be 20 and p will store the base address 3046
@ayyoubezzouine Жыл бұрын
best teacher ever !thank you so much
@suvashreepriyadarshinibisw8017 Жыл бұрын
C = 9 A= 20 P = hexadecimal number
@limitess9539 Жыл бұрын
if you suddenly open 15:38 it looks like b=a lol, in that case value of C would be 10 which I thought, because it looked like that to me lmao
@maradanavivek Жыл бұрын
9
@Games_with_Aryan3652 жыл бұрын
Answer C=9 a=20 P=it store the address of other variable in hexa decimal form...
@hariparuchuru38582 жыл бұрын
what I understood I if we initialize int a=10; int *p; p=&a; *p=44; printf("%d", a); then it will print a=44; i think here we are changing the value stored in a through pointers i.e if p is having address of a the *p says value stored at the address means if we initialze *p =44; means we are initializing value to a.
@archismanghosh72832 жыл бұрын
my favourite teacher and first choose of CS
@melthabah11583 жыл бұрын
The value of a now is override by 20 output is 20 for a value mam
@Sunil-zo3bh4 ай бұрын
As *q=*(&b) And b is having value 9. So asterisk operator will fetch value inside address of b. Ie. 9
@kwameanati Жыл бұрын
Value of c is 9 Value of a is 10 Value of p is &a in hexadecimal
@vaibhavsinhbihola13 жыл бұрын
15:29 answer is 9 16:18 for value of a answer is 20 and for value of p answer is 1000
@praveensamuel80833 жыл бұрын
exactly hexadecimal value of p is 1000 only.... y bcoz here p have address of variable 'a'... condition: P=&a
@manojrajput99302 жыл бұрын
a = 10 P = 1000EF( in hexadecimal form) C = 9
@kushpreetbakshi48282 жыл бұрын
A will be 20 bro change kar di hai val. A ki pointer se
@soulfulhuman87242 жыл бұрын
@@kushpreetbakshi4828 hello. Value is coming out to be 10 when I run it in VS code. And after this I also print Printf("%d", *p) ; So value is coming 20 there. How come?
@totoplopp6630 Жыл бұрын
She got me through my bachelor in computer science more than any teacher at Uni
@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.
@harshpandey35003 жыл бұрын
It's very useful mam thanks for this information
@coding14153 жыл бұрын
kzbin.info/www/bejne/pYjXmq2lrL-MeMU
@codeMantra2722 жыл бұрын
Thanks ma'am your video clear my all doubt ☺️
@tanish_ot72 жыл бұрын
Mam aap bhout acha padhate hoo
@timjoyalle3183 жыл бұрын
New to the channel. I like your style of teaching. Keep up the good work!
@coding14153 жыл бұрын
kzbin.info/www/bejne/pYjXmq2lrL-MeMU
@laxmanpabbathi92683 жыл бұрын
Nice teaching
@sairamkumaremani24853 жыл бұрын
Thank you very much mam now concept is very much clear.
@coding14153 жыл бұрын
kzbin.info/www/bejne/pYjXmq2lrL-MeMU
@shinyrao27862 жыл бұрын
*p=20; which means value of a will be overwritten by 20.a=20;
@eshuvgautam31863 жыл бұрын
Mam whenever you teach us everything is FINE!
@maryannemuthoni53889 ай бұрын
Value of c is 9 Value of a is 20 Value of p is the address of a which in our case it's 1000 but will actually be in hexadecimal form
@heroicme6982 Жыл бұрын
Best teacher in the world❤🩷💛
@nextzen95502 жыл бұрын
very very thank you so much ma'am
@Mehedihasan-rahat18 күн бұрын
Thanks 4 your outstanding explanation but a single query was what is the purpose of using pointer???😮😮
@jayalakshmilbhat1258 ай бұрын
Best lecture ever seen.. Happy Birthday mam ❤
@nextzen95502 жыл бұрын
i like your video...thx ma'am
@bathureddy44563 жыл бұрын
hyderabad secunderabad jenny madam zindabad...
@coding14153 жыл бұрын
kzbin.info/www/bejne/pYjXmq2lrL-MeMU
@yashichauhan3162 жыл бұрын
in case of printf("c= %d", c); the address of pointer q is printed in integer format. next incase of printf("a= %d ",a); value of a willl be printed that is 10.
@yashichauhan316 Жыл бұрын
@sampath sam hey
@priyanshusaraswat88929 ай бұрын
Thank you for lecture
@faithfullyfactual Жыл бұрын
value of c = 9 because c is initialised to hold the value of the pointer q(which houses the address of b), which turns out to be 9. Hence, value of c printed would be 9. In case 2, the value of the address p holds (*p) is modified in memory to 20. The address p holds is of variable and since *p is modified, it means a has been modified (or corrupted). Hence the value of a printed would be 20. In the last case, p would print the address of the variable a, didn't change throughout the program.
@MadhuKarampudi Жыл бұрын
value of c == value of b and a becomes variable so it leaves 10 value and it will get new value that is 20 a=20 and p=20
@shinyrao27862 жыл бұрын
Printf ("%x",p) gives adress of p in hexa decimal form
@abdulrahimjalloh363 Жыл бұрын
Assignment: printf("c=%d",c)...............it will print 9 printf("a=%d",a)..............it will print 10 printf("%x",p)..................it will print 10
@iasaspirant14412 жыл бұрын
superb explanation madam
@hustlewithnik3 жыл бұрын
a= 20 p= address of a in hexadecimal form c=9
@Romantic._Songs2 жыл бұрын
Hi nikita❣️❤️
@FunandLearn25123 жыл бұрын
I am already a software developer. I don't know what I am doing here . I just came to see you everyday .
@timjoyalle3183 жыл бұрын
I know what you are doing here...
@FunandLearn25123 жыл бұрын
@@timjoyalle318 please enlighten me 😀
@timjoyalle3183 жыл бұрын
@@FunandLearn2512 You're here for her beautiful mind!
@FunandLearn25123 жыл бұрын
@@timjoyalle318 yes correct .
@dompelkmoviereview Жыл бұрын
C = 9 a = 20 p = address of a ( hexadecimal number )
@ramu63132 жыл бұрын
q contains the address of b(q=&b) *q contains the value of b=9 So c=9(c=*q(
@BiswajitMaharana13 жыл бұрын
Thank you mam for uploading this.
@coding14153 жыл бұрын
kzbin.info/www/bejne/pYjXmq2lrL-MeMU
@thedata-ist2 жыл бұрын
Since, q is carrying the address of b, so *(&b) = b. So, the output will be 9.
@taniyahettiarachchi66743 жыл бұрын
Thank u very much mam.💪💪👍👍🙏🙏❤❤
@coding14153 жыл бұрын
kzbin.info/www/bejne/pYjXmq2lrL-MeMU
@williemungai19542 жыл бұрын
c outputs 9 the value of a is 20 p prints the memory address of a in hexadecimal
@sairampolisetty20593 жыл бұрын
Thank you soo much mam ❤️😀 I have understood clearly.
@atharvabadgujar9868 Жыл бұрын
value of a will get printed the adress of p will get printed in another case
@sauravjaiswal59702 жыл бұрын
c=*q; since q stores address of b so the value at that address will be stored in c i.e 9
@jayprakashmahakud9150 Жыл бұрын
9 20 Address of a which is hexadecimal
@harshini.m33278 ай бұрын
Haappyyy Birthday Mam!🎉 Grateful for ur videos❤
@GaganGarg-pt6bg5 ай бұрын
Now i can understand pointers
@asmarubiya52142 жыл бұрын
Better than our academic lectures..
@mohithar11102 жыл бұрын
hey army ..!
@asmarubiya52142 жыл бұрын
@@mohithar1110 hiiiii💜💜
@mohithar11102 жыл бұрын
Wow I can see army's every where 💜🥰
@vrengineers2462 Жыл бұрын
ankit and pulkit will remember forever
@onlynoone65122 жыл бұрын
15:28 *q=&b; here *q=9; then c=*q; so c will equal to 9
@mukbanggie33753 жыл бұрын
Example of beauty with brain 🥰🥰
@coding14153 жыл бұрын
kzbin.info/www/bejne/pYjXmq2lrL-MeMU
@misturaojulari9707 Жыл бұрын
Thanks a lot! Your class is helping me achieve the impossible
@prassyam3 жыл бұрын
Namaste ji, can u pl provide tutorial on Oracle 10g...in Hindi
@chandananonymus35632 жыл бұрын
thnks mam it was exam.time you cleared me before going to exam......and the exam was practical exam.🥲
@techienomadiso89702 жыл бұрын
Why can't Lecturers teach with passion like this? 🤦
@sauravjaiswal59702 жыл бұрын
*p=20; *(&a) = 20; //overwrites the value of a so a=20
@Palash-vm4mo2 жыл бұрын
Today is mam interview and these video is so beneficial for me💜
@JackCoderr Жыл бұрын
Thank you so much mam 🏵️🏵️🏵️... really greatful to you mam
@phanimanojoleti66062 жыл бұрын
your classes are awesome 😎😎😎 mam
@muhammedjasil1701 Жыл бұрын
One of the great gift for Indian students..
@devSackey Жыл бұрын
The value of c is 9; a = 9; p = The address of a(in hexadecimal);
@YashwanthCheerla8 ай бұрын
Happy Birthday 🎉
@shraddhapawar56743 жыл бұрын
Ma'am if possible, upload video fast. Nice lecture 👍
@leharaoshan7764 Жыл бұрын
thank you soo much jenny madam❤
@itsmearun7388 Жыл бұрын
And also u should declare. All the value in printf in single line.. Like... Printf ("%x%d%d%x", a, pa, &pa, *pa) ; I'm just telling... That's also okay.. Know...
@alyanaly90692 жыл бұрын
Answer C=9 a=20 P= address of a in hexadecimal form
@ASRCreations Жыл бұрын
Completed the course in 1 day for exam
@viratkohli53683 жыл бұрын
madam plz make a video on dangling pointer and null pointer