Your way of teaching is way more better than any other way i have seen
@raviprakashmishra28604 жыл бұрын
this is best content u will ever come across in entire INTERNET
@parimalkothari76073 жыл бұрын
@David Clayton will u both stop spamming msgs......u use flexipay to take the credit card details of the payer....nothing else stfu
@youmemeyou Жыл бұрын
Ök
@nomad6902 ай бұрын
Øk
@arkadiptadas41485 жыл бұрын
Thank you, sir, for providing such quality lectures... Really helped me out in the interviews
@somasekhardakala26305 жыл бұрын
I'm learning so much from your videos...Thank you...
@arularasij30994 жыл бұрын
I have really learned a lot. I had easily understand the concepts with the help of your videos . Thank you so much sir
@adithyasaiendla24854 жыл бұрын
Now concepts r crystal clear
@rinto_rnr Жыл бұрын
Thanks for the great lecture you really saved me before my final exams.
@tails_the_god2 жыл бұрын
thank you sir i can always depend on neso academy for giving me the answers im looking for! :D ❤
@cristianrestrepolopez9764 жыл бұрын
really helpful!
@creatorsayanb4 жыл бұрын
5:36 there should be *eqality, not inequality. I think that's a simple mistake. Thanks again for changing their life of so many students.
@brycehazen5 жыл бұрын
@7:19 did you mean to say the first element of array b? Isn't it point to the 3rd element?
@BobChevy735 жыл бұрын
I Think he meant 4th element. Index 3 is the fourth element. Index 0 is the first.
@adityasagarr5 жыл бұрын
same thing here..
@sunilkarpe15184 жыл бұрын
Why we can't add two pointers which are assigned to array Like p+q...(why only p-q is allowed)
@MonikaSingh-ee6yv4 жыл бұрын
Sir , how do I improve competitive coding skills? Please make video on it. Thanks in advance
@MrCEO-jw1vm9 ай бұрын
thanks so much for this wonferful content!
@NMAJJINEERAJA4 жыл бұрын
Really awesome sir actually I have a doubt on my mind while watching the video then I posted in comments but after watching the remaining video I got the answer for my question Thank you very much sir
@andre8844 Жыл бұрын
While practicing, I noticed if you make maybe q point to an address beyond the array length, maybe a[10], you will be getting some weird values. If in your program you have another array, you may end up pointing to a value in that array. Help make sense of c. I don't wanna be in a c(sea) of problems
@nikhilanand9844 жыл бұрын
what do you mean by running the program online and offline??
@nikhilanand9844 жыл бұрын
sir what will be the output if we take initially the index 0 and then subtract from it any positive integer.
@kamyagupta40302 жыл бұрын
thank you ♥️
@NMAJJINEERAJA4 жыл бұрын
Here we are using array and simply adding or subtracting the integer value from the pointer but if we are not dealing with the arrays and they asked to add 3 to the integer pointer without providing base then is it print error. Or any garbage value 🤔
@manupareek87765 жыл бұрын
any ways great teaching!
@manupareek87765 жыл бұрын
sir. is the c language course completed? if not, then how much course is completed? i mean is it 80% or 70% complete?
@kavanajois94353 жыл бұрын
you are genius
@true41894 жыл бұрын
Thank u
@bishnupadamaity41984 жыл бұрын
What if we want to subtract 3 from a[0] ?
@oggy1074 жыл бұрын
if we subtract something from base address of arr[0] then it simply means that the resulting adress will be out the range of that array and it will produce unexpected result.
@cuteonigiri1671 Жыл бұрын
2 yrs late but ig a[0]-3 is the answer?
@cuteonigiri1671 Жыл бұрын
int *p=&a[0]; *p-3 also can do
@yevgeni103 жыл бұрын
7:20 pointer q points to the first Array element ??
@marbles55902 жыл бұрын
7:21 *must be fourth element in b[ ]
@kornmc2 жыл бұрын
i think subtraction in array output is giving not a array element. outpu giving only integer ?
@rockstarmani4 жыл бұрын
Can any one clarify me??? If we substract two pointers Belonging to Same array,we can access element of corresponding index! What happen if we add two pointers of a same array??? Is it garbage value??? p and q are pointing to same array! Int *p; Int *q; Printf("%d",*(p+q)); o/p???
@dipeshranadipeshrana8812 жыл бұрын
It's illegal in c. Try yourself by writing program
@abhishekkumarsingh7552 жыл бұрын
Sir, if *p = &a[0] and *q = &a[3] and if we subtract q - p we still get &a[3], but in array should'nt we take one step backward from 3 and get &a[2}. ?
@dipeshranadipeshrana8812 жыл бұрын
No search in Google. Subtracting pointer gives distance between element of array. So like a+2 points to third element . subtracting address of first element and third element will give 2 hence printing a[q-p] prints third element
@MysticRogue_092 жыл бұрын
At 4:18 what happens if we do p-q will it give error ?
@anubhabpanda65032 жыл бұрын
-7 o/p
@janaey1583 жыл бұрын
So is p=p-3 not a legal argument? I have to multiply to achieve the correct result?
@sunilkarpe15184 жыл бұрын
Why we can't add two pointers which are assigned to array Like p+q...(why only p-q is allowed)
@cuteonigiri1671 Жыл бұрын
supposedly q=&a[0], where p contain address of a (assume 1000 as a[0] address) p=&a[1], address = 1004 since 1 element contain 4 byte. if u do p-q, u will get the element in the array. p-q = (1004-1000)\4 = 1. so a[p-q]=a[1]. if u do p+q=(1004+1000)\4 = 501 a[p+q] = a[501]. unless u have the element in a[501], it might give u garbage value
@cuteonigiri1671 Жыл бұрын
please correct me if im wrong. cuz thts how i understand it
@devsutong4 жыл бұрын
do we actually have to do this?? i didnt divide by 4 but it still works!?
@indiancoder83015 жыл бұрын
How much % of the course is completed
@subasris71514 жыл бұрын
what happens when two pointers are added ?
@harcharansingh19974 жыл бұрын
At last question how output offline comes -1 plzzz anyone explain it
@yoddha6214 жыл бұрын
Its not about online and offline you will always get different value when you add or subtract two pointers pointing to two different arrays.
@qandos-nour4 жыл бұрын
why the distance between pointers is 4 not 3??
@devsutong4 жыл бұрын
because integers are hardcoded in c language to take 4byte of memory space in the memory
@kshitizshrestha93983 жыл бұрын
@@devsutong Not actually, It depends on the architecture of the computer that how much memory does an integer or any other data type take. Back in the days, a 16-bit architecture used to take an int as 2 bytes.
@devsutong3 жыл бұрын
@@kshitizshrestha9398 youre right its architecture specific
@utkarshsingh82514 жыл бұрын
can i subtract 3 from 0
@vikashmishra19034 жыл бұрын
Yup It will give uh garbage value(not error)
@quantumnature66414 жыл бұрын
Wwwoooooowwwww..... 0 dislikes and 234 Likes... I have see. First time in you tube channel... I am socked.... 🤗🤗🤗🤗🤗🤗🤗🤗🤗🤗🤗
@santhosh67845 жыл бұрын
What will happen if p points to the first element of an array and we are going to subtract an integer from it, like this int a[ ] = { 1,2,3,4 }; int *p = a; printf("%d", *(p - 1));
@raviranjanjha36774 жыл бұрын
Garbage value
@chintumohan61103 жыл бұрын
@@raviranjanjha3677 why we did not use * in print statement for both p and q it producing error without *
@gowthams43602 жыл бұрын
I think it produce error the pointer is staying at starting position.it can't go back it's illegal
@anuragupadhayay45054 жыл бұрын
p = &a[0]; p = p - 1; //This'll be an error right?
@cuteonigiri1671 Жыл бұрын
it wont gives u error but the result of the address number of a[0] being subtracted by 1. for example, my result = 6475263 like tht.
@abhishekbiswas22673 жыл бұрын
I did *ptr = & a[0] and then ptr = ptr-3; suddenly I see blue screen "your system ran into an error" 😭😭🤣😁
@shaikhsaberaalam10194 жыл бұрын
can't the base pointer be 996 instead of 1000?
@vikashmishra19034 жыл бұрын
He is just assuming the base as 1000 so it can make calculation easier that's it...if uh bad in maths and beginner in programming than take base as 437 (random) than perform operation uh will get confuse.
@shaikhsaberaalam10194 жыл бұрын
@@vikashmishra1903 thank you
@vikashmishra19034 жыл бұрын
@@shaikhsaberaalam1019 come come welcome 🤗
@hetaeramancer3 жыл бұрын
@@vikashmishra1903 what the fuck is come come welcome?
@hellocreep89863 жыл бұрын
@@hetaeramancer tu kha se
@mehedihassan46534 жыл бұрын
😣😵😵
@durnibar38862 жыл бұрын
#include int main() { int a[] = {1, 2, 3, 4, 6, 4}; int *ptr = &a[2], *q = &a[5]; printf("%d %d ", ptr, q); printf("%d", q - ptr); return 0; } it should have given output 12, but why the hell is it giving output 3
@cuteonigiri1671 Жыл бұрын
because u r subtracting the the address instead of the element. u should use *q - *ptr instead
@cuteonigiri1671 Жыл бұрын
#include int main() { int a[]={5,47,65,43,10}; int *p,*q; p= &a[3]; q= &a[0]; int sub=a[p-q]; printf("%d", sub); } i did it like this to print the element after subtracting between the pointer tho i dont the use of subtracting them...
@hardikpatel352 Жыл бұрын
can anyone please give the solution of this #include char *c[] = {"GeksQuiz", "MCQ", "TEST", "QUIZ"}; char **cp[] = {c+3, c+2, c+1, c}; char ***cpp = cp; int main() { printf("%s ", **++cpp); printf("%s ", *--*++cpp+3); printf("%s ", *cpp[-2]+3); printf("%s ", cpp[-1][-1]+1); return 0; }