=> post increment me starting me statement ko run krega jo pehle se initilize i ki value hai uske bad i ko increment krega eg- i =10 k=i++ now statring i value 10 hai to k me 10 store ho jayega or fir i ki value i=i+1 ho jayegi => pre-increment me eg- i =10 k=++i isme pahele value increment hogi fir statemnet run hoga jese ki ..... i=11 k=11 Jay Shree Ram
sir , mam have no experience of teaching that's why I can't understand "Hollow Rectangle Pattern ". please mam aaram se dheere -dheere step by step samajhaiye .
Pre-increment (++i) - Before assigning the value to the variable, the value is incremented by one. Post-increment (i++) - After assigning the value to the variable, the value is incremented. The following is the syntax of pre and post increment. ++variable name; // Pre-increment variable name++; // Post-increment
The example shown in the video is not taught correctly. If you see carefully the compiler gives one warning about undefined behaviour but the instructor has ignored it. Undefined behaviour should not be taught as an example of pre-post increment/ decrement operator. Although we get output, the same program may cause different output in a different compiler. Search on internet what is undefined behaviour
@@goodboy2528 Yeah i got your point.I guess not using brackets () may be the reason for that problem.There were 5 to 7 variables used with increment and decrement operator .I guess if you use brackets() for each variable used in that code then that warning may not come i am not sure about it. I was just thinking about it. I haven't tried that yet.But the concept was clearly explained.
@@yogeshsanap8453 Hey Yogesh it's not about brackets. And example might produce different output on different compiler. To simplify it in C/C++ you are not not allowed to change the value of a variable more than once in a statement. So statement like K= ++i + i++ Tries to change the value of variable more than once. Although this will produce some output and not give error. I actually tried to run the above statement on different compilers. When i=10 I got 23 as output on GCC compiler and 22 as output on Clang++ compiler. You can also try. So you see we get different output for same code. Beacuse of undefined behaviour compiler can do anything it likes.
@@yogeshsanap8453 For proof try running the code I have wrote here : repl.it/repls/ProductiveInnocentLaws the output here is 22. Now copy the code in your computer and then run (I assume you have GCC compiler if not then run the same code here online GCC compiler : www.onlinegdb.com/online_c++_compiler Copy paste the code from first link and run on the second link. You will get 23 as output.
sir , mam have no experience of teaching that's why I can't understand "Hollow Rectangle Pattern ". please mam aaram se dheere -dheere step by step samajhaiye
Wow wow wow just wow this quality of education for free revolution has surely strarted for India in the field of Education with this channel kudos to Aman bhaiya and his wonderful team🙏❤️
thank you so much sir aman form pakistan mujy c++ course college may bilkul samaj may nai atta thaa but ap kay is course nay tu yr zindagi hi asan kr di
From the note some error there I see the issue. The error is due to the attempt to decrement the result of an expression. The postfix decrement operator (`--`) requires a modifiable lvalue as its operand, and the result of the expression `3 * (2--)` is not a modifiable lvalue. To fix this, you can store the result of the multiplication in a variable before applying the decrement. Here's the corrected version: ```cpp #include #include using namespace std; int main() { int result = 3 * 2; printf("%d", result--); return 0; } ``` This way, you first calculate `3 * 2` and then decrement the result.
I watched all videos of web development playlist. And Today I finally subscribed for this channel... Honestly excellant quality and quantity of content... Thanks a lot.... thank YOU so much... 👌👌😊
Best ever tutorial, superb, I request everyone to watch full ads comes on this channel so that they can also earn for providing such free and best education, great salute to you guys
Di thank u soo much mera sapna tha ki mujhe coding sikhna h or mere village mei koi v teacher ya classes nhi thi main 9th class mei hun or aap ke wajah se main ye sikh pa raha hun thanks a lot di. 🤗
Hello Team, It would be really great if you put all questions (c++ placement)in one pdf along with solutions (topic wise and difficulty wise).so that students who have already covered dsa part ,and are appearing for interview in a month time..can easily get prepared with it.! Orelse it's tough to follow course when it will bw completed. It will be great for those final year student who have basic programming skills and also completed DSA,and wants to improve their problem solving skills. And want to revise through! . It is a request to you sir.! It will help a lot!! Keep it up for the good content u are providing.. i wish i had it in my 3rd year .till now i would have completed successfully.! Thanks, Regards!
I opened TH-cam just to see c++ aya kya nahii ......and it was there .... launched just 1 min phele hii ......and I was ohhhhhmmmggg💯💯🥺❤️🌻🌻.....love you bhiyaa ❤️❤️❤️🥺
Question 4 and 6 will give lvalue compilation error, as increment and decrement operator (++ and - - ) will work only on a variable and not on a constant ie; a++ or a-- is correct, but 2-- or 2++ is error.
But Bro its c++. you have to define what is 2. Bro listen u see 2 has a value of 2 and when u use decrement or increment 2 get some other value. which is not possible in C++👍. I hope my explanation is correct
See guys he is really working hard As you guys can see, he uploads a lecture daily So you can plan to do that lecture next day by making a time table according to it Why to put extra pressure on him
🙏🙏thank you bhaiya and di..🙏🙏for providing this. Thank you ❣️. thank you soo much. Aisa lagata hai college Jane ki jarurat hi nahi hai. Ghar pe bethake self learning bhi ho rahi hai. Aur confidence bhi bhed raha hai It is possible because of you❣️. Thanks a lot again.
We use printf() function in C language like in C++ we're having cout and % is a place holder and d,f are variable specifier as decimal , fraction and many more ..so variable a will hold the decimal value.
every clarification in this video (*********nice***********!) sir thoda jaldi daal do sabhi video thaki humlog more practice kar sake...thankslot for this vid.
one doubt: #include using namespace std; int main() { int a = 5; a = (1, 2, 3); printf("%d ", a); return 0; } answer is 3 but associativity of ( ) is left to right. similarly for #include using namespace std; int main() { int a = 5; a = 1, 2, 3; printf("%d ", a); return 0; } answer is 1 but associativity of =(assignment ) is from right to left.
Input a number n and tell whether it is equal to, less than or more than 10: (using nested if) #include using namespace std; int main(){ int n; cin>>n; if (n==10) { cout
at 4:08 i=i++ + ++i; why it is 1 and 3. Post increment is like first use the value in expression (if any) and then save expression value to the LHS part then increment the LHS value. so It should be i= 1+ 2=3 --> i= 3++ --> 4 Answer. it is as per definition.Please correct me if i am wrong . wny we increment value of 1 2 times from 1 to 3.. it is not right because we are incrementing value of i before using its value which is 1. PLEASE ANSWER MY DOUBT
Bhaiya we want a telegram group students who have justed coding and you 7 people faculty to help us in solving contest problem especially teacher are important as they know our level and so that they could give us right approach to work with them and they can assist us too
Make sure you are downloading the notes available in the description box of this video.
Sure, thanks❤️
Bhaiya chemistry video lecture
Bhaiya I wanna teach pol scienec
Plz reply I wanna do something for humanities
I am messaging u from previous lots of days plz plz replu
You nailed it Aamn bro....👍🔥🔥
Knowledge is literally water
🔥🔥
My interest in programming language is increasing day by day 🤩🤩
cant believe this level of content is being provided by Apna College just for us students. Thank you for such noble work for this country!
i was a bit confused in pre and post increment but....
you guys cleared it in a breeze
thank guys you are really making a difference
++a pehle increment kare phir print kare / a++ pehle print kare phir increment kare
=> post increment me
starting me statement ko run krega jo pehle se initilize i ki value hai uske bad i ko increment krega
eg- i =10
k=i++
now statring i value 10 hai to k me 10 store ho jayega or fir i ki value i=i+1 ho jayegi
=> pre-increment me
eg- i =10
k=++i
isme pahele value increment hogi fir statemnet run hoga
jese ki .....
i=11
k=11
Jay Shree Ram
Excellent explanation on pre and post increment operators never seen so much clear explanation. Splendid job guys
Frequency of uploading videos is lit 🔥🔥
yaar ye di bohot achhe se padhati hai yaar😁.thanks aman bro and .... di
i have never seen a content of such fine content . it is absolutely great. thankyou so much for this . to all you guys
In one example the video has taught undefined behaviour as a operator precedence example
Going for sleep ,so giving myself a timestamp 10:53 to watch from on the next day.
Thanks bro... Helped me out too
@@MysteryTapeX welcome Vidhi
You should try to finish the video in one shot, that would be great 😊😅
sir , mam have no experience of teaching that's why I can't understand "Hollow Rectangle Pattern ".
please mam aaram se dheere -dheere step by step samajhaiye .
lmao good idea
Pre-increment (++i) - Before assigning the value to the variable, the value is incremented by one.
Post-increment (i++) - After assigning the value to the variable, the value is incremented.
The following is the syntax of pre and post increment.
++variable name; // Pre-increment
variable name++; // Post-increment
thnx bhaiya😊
Very Good Explaination ! Even Included Advance topics such as reference! great to See That!
Excellent practice questions on increment (++) and decrement (--) operators.Thank you sir.
The example shown in the video is not taught correctly.
If you see carefully the compiler gives one warning about undefined behaviour but the instructor has ignored it.
Undefined behaviour should not be taught as an example of pre-post increment/ decrement operator.
Although we get output, the same program may cause different output in a different compiler.
Search on internet what is undefined behaviour
@@goodboy2528 Yeah i got your point.I guess not using brackets () may be the reason for that problem.There were 5 to 7 variables used with increment and decrement operator .I guess if you use brackets() for each variable used in that code then that warning may not come i am not sure about it. I was just thinking about it. I haven't tried that yet.But the concept was clearly explained.
@@yogeshsanap8453 Hey Yogesh it's not about brackets. And example might produce different output on different compiler.
To simplify it in C/C++ you are not not allowed to change the value of a variable more than once in a statement.
So statement like
K= ++i + i++
Tries to change the value of variable more than once. Although this will produce some output and not give error.
I actually tried to run the above statement on different compilers.
When i=10 I got 23 as output on GCC compiler and 22 as output on Clang++ compiler. You can also try.
So you see we get different output for same code. Beacuse of undefined behaviour compiler can do anything it likes.
@@goodboy2528 Ohh I got it now thanks for your time
@@yogeshsanap8453 For proof try running the code I have wrote here : repl.it/repls/ProductiveInnocentLaws
the output here is 22. Now copy the code in your computer and then run (I assume you have GCC compiler if not then run the same code here online GCC compiler : www.onlinegdb.com/online_c++_compiler
Copy paste the code from first link and run on the second link. You will get 23 as output.
thank you very much for this free and educative course, which is helping me a lot to learn c++
Aman Bhaiya and his team have started making me love studying.
Wohhhh Notes are having examples in C language 😂😂 love you 3000 Aman and team❤️
sir , mam have no experience of teaching that's why I can't understand "Hollow Rectangle Pattern ".
please mam aaram se dheere -dheere step by step samajhaiye
Wow wow wow just wow this quality of education for free revolution has surely strarted for India in the field of Education with this channel kudos to Aman bhaiya and his wonderful team🙏❤️
thank you so much sir aman form pakistan
mujy c++ course college may bilkul samaj may nai atta thaa but ap kay is course nay tu yr zindagi hi asan kr di
finally lectures reaching to it's core parts
thankyou to the Apna college team for providing this course free with wonderfull explanation.❣🤗
Great!!! Every second of this video is worth to watch !!
From the note some error there
I see the issue. The error is due to the attempt to decrement the result of an expression. The postfix decrement operator (`--`) requires a modifiable lvalue as its operand, and the result of the expression `3 * (2--)` is not a modifiable lvalue.
To fix this, you can store the result of the multiplication in a variable before applying the decrement. Here's the corrected version:
```cpp
#include
#include
using namespace std;
int main()
{
int result = 3 * 2;
printf("%d", result--);
return 0;
}
```
This way, you first calculate `3 * 2` and then decrement the result.
Thankyou aman bhaiya and team🙏
I watched all videos of web development playlist. And Today I finally subscribed for this channel... Honestly excellant quality and quantity of content... Thanks a lot.... thank YOU so much... 👌👌😊
Best ever tutorial, superb,
I request everyone to watch full ads comes on this channel so that they can also earn for providing such free and best education, great salute to you guys
Bhai mere pe ads nahi aate
Frankly speaking I now understand this increment decrement; bcs it's so easy to understand, ty
Amazing series sir. It actually suits me a lot. Please don't stop it at any cost even the views getting lower.
Please keep the series on go
the explanation is just another level every just got printer in my head all thanks you u.....................
Hello Bhaiya,
In 2018 you made 3 videos about quick JEE Preparation for Physics, Chemistry and Maths. Please make them this year also.
I think India contributed a lot to the right to education.
Of course other countries also contributed.
Thanks so much.
From Cameroon
Thanks ma'am for your efforts 🙏🙏
Bro you are Donald duck who was preparing for nda at Unacadmy
Didi, you are great yaar!!!!❤❤❤❤❤❤❤❤❤❤❤❤......∞
Why is her voice so sweet? I like your voice ma'am. So soothing
@@sumitnaiyaa 😄😄
Di thank u soo much mera sapna tha ki mujhe coding sikhna h or mere village mei koi v teacher ya classes nhi thi main 9th class mei hun or aap ke wajah se main ye sikh pa raha hun thanks a lot di. 🤗
7:05
0-0+1-0
=0 kaise 🤔
Last ma post increment kiya tooo Ham 1 use krenge i ko yaaa 0??
Expression ke andr
1
#include
using namespace std;
int main()
{
cout
First Student to see this, I have been regularly seeing every videos
Pls tell me... Do we need to learn C language before starting this course of C++
@@aqibkhwaja6106 No brother there is not need for C language knowledge . They are covering the basics in c++ i.e mostly same in c also.
@@GeekyRavi yeah
Same
Hello, can someone tell m if I should learn javascript or python ?
until now, this one is most explanative video in the course! Thanks, didi.
Everyone is praising Aman bhaiya but I think u should appreciate dii also who taught every topic so well. cheers and thanks to all the team _/\_ :)
Aman bhaiya apko bhi bohot bohot badhai♥️
Hello Team,
It would be really great if you put all questions (c++ placement)in one pdf along with solutions (topic wise and difficulty wise).so that students who have already covered dsa part ,and are appearing for interview in a month time..can easily get prepared with it.! Orelse it's tough to follow course when it will bw completed.
It will be great for those final year student who have basic programming skills and also completed DSA,and wants to improve their problem solving skills. And want to revise through! .
It is a request to you sir.!
It will help a lot!! Keep it up for the good content u are providing.. i wish i had it in my 3rd year .till now i would have completed successfully.!
Thanks,
Regards!
drive.google.com/file/d/1FMdN_OCfOI0iAeDlqswCiC2DZzD4nPsb/view
@@AN61015 thank you so much ankita!
th-cam.com/video/5FsIa4Mp3ho/w-d-xo.html
@@AN61015 😳😳🤯
Kindly send me too.
😊 Thanks
Nice sir... Your hard work is revolutionizing digital education
I opened TH-cam just to see c++ aya kya nahii ......and it was there .... launched just 1 min phele hii ......and I was ohhhhhmmmggg💯💯🥺❤️🌻🌻.....love you bhiyaa ❤️❤️❤️🥺
Mam your teaching skill so amazing 😊😊
Love the Way When MAM says YAAR!
Question 4 and 6 will give lvalue compilation error, as increment and decrement operator (++ and - - ) will work only on a variable and not on a constant ie; a++ or a-- is correct, but 2-- or 2++ is error.
But Bro its c++. you have to define what is 2. Bro listen u see 2 has a value of 2 and when u use decrement or increment 2 get some other value. which is not possible in C++👍. I hope my explanation is correct
I think 2 is predefined thing in c++. Just like we change compunds not atoms.
@@jassijassi2037 bro isi video ke niche dekho Notes he jo usme dekhna 2-- ko meaningless bolrhka he
1st view Sir please give us schedule of the course so that we can be prepared🎉🎉🙏🙏
Yes it would be really hepful.
Yes sir
Yes sir
See guys he is really working hard
As you guys can see, he uploads a lecture daily
So you can plan to do that lecture next day by making a time table according to it
Why to put extra pressure on him
Can anyone tell
Is i3 10th gen good for programming
Thank you apna collage team for better understanding 🙏 ...
Just came to like 👍 video
To make teachers motivate
Thank you
Class 11 course plz
🙏🙏thank you bhaiya and di..🙏🙏for providing this.
Thank you ❣️. thank you soo much.
Aisa lagata hai college Jane ki jarurat hi nahi hai.
Ghar pe bethake self learning bhi ho rahi hai.
Aur confidence bhi bhed raha hai
It is possible because of you❣️.
Thanks a lot again.
Amazing session. Thank you Aman Bhaiya and your entire team : )
You guys are really revolutionising Indian education
Hi aman bhaiya i am in class 6 and i know java, python, javascript, and learning c++ from this course 😇😇😇
👍👍
so you are in class 6, good if u know that much languages just tell me the use of __repr__
@Shaurya Thareja Then what bout full stack developers?, Data scientist?... think,,think,,think
@@KundanKumar-uj2in😂 even I laughing in the corner 😂
a+b (here a and b are called operands, + is a operator as they have told us)
btw best series...tysm sir and ma'am...
Really working amazing!💯💯
No one is teaching like this for free with notes and animated videos
Keep it up😍🔥
I am fan of maam's voice ,really amazing to learn something 🙌😌
mam notes me question 1 printf("%d",a) ka function samajh nhi aya. please explain in upcoming videos.
We use printf() function in C language like in C++ we're having cout and % is a place holder and d,f are variable specifier as decimal , fraction and many more ..so variable a will hold the decimal value.
Wo c language hai isliye samajh nahi aa rahi hai
bhai kuch farak nhi padega
#include
using namespace std;
intna start me dal dena
and
instead of printf just type "cout
Great work♥️ didi hats off
It was an amazing lecture ,Thank you so much.
Tabahi macha rakhi h iss course ne🔥🔥
Your voice is so good .
I want to see your face mam 😍
Bro ye apni kaksha ki English wali mam hi hai...
Maam
really you are Amazing
i like your method of teaching
Sir need help please course on Android development please..
brother as a final year CSE student i would suggest you to purchase on sale from udemy starting at 400 rs in sales, trust me courses are worth it
@@devtalks6943 thanks Bhaiya I will definitely
Aman Bhaiya Op ❤️🔥🔥
Great didi
Your course in amazing i liked it a lot
I request you please don't stop videos in half of the course...
I wish more detailed explanation was cited on precedence and associativity
mam aap great ho, kya pdhaya hai maja hi aa gaya.....
17:40 u will find most interesting part
Easy-pizzy 😆😆😆😂😂
I was checking comments just to check if someone else have noticed that cute "easy pizzy" lol
most complex topics but so easy explaining ❤❤❤❤❤❤❤🙏🙏🙏
Studing Here At 5am
Seems like your night had stolen your 'y'..
Thank u aman bhaiya informative video thank u mam😃😍🖤❤
In love with girls voice ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
Simp😏
maam aap nice explain krti thanku so much ........🙏🙏🙏
Bhaiya please Upload physics lectures and notes...
Plzzz....And also the schedule of PCM Videos....
bhai physics chemistry jee wale lectures apni kaksha channel par upload hote h . waha jake check karo.ye channel college students ke liye h.
every clarification in this video (*********nice***********!) sir thoda jaldi daal do sabhi video thaki humlog more practice kar sake...thankslot for this vid.
Sir please upload class 12 videos. Waiting eagerly.
And physics notes also.
very clearly explained each of the operators . Thank you so much
Awesome lectures by members . Can we get a 40 lakh package by this course?
Yes you can apply in tower research after doing this course thoroughly , and easily crack it. Best of luck.
@@jitishgupta6424 sirf iit B ya iit D me ati hai😂
@@kumarharsh90 sarcasm suna h kabhi ? Ya itna humour nhi h , koi na bro uska bhi course aajaega
@@jitishgupta6424 bhai mai use bata ra tha kahi vo banda seriously na le le
@@kumarharsh90oh 😂😂😂 sorry , which college bro ?
Verryy very Gudd🔥🔥🔥🔥🔥🔥
In the notes the code is in c and not in c++.Please look into it and replace with c++ code.
Thankyou
You can use printf scanf in c++ also.
@@BarkaDog I agree but it isn't used that often. 🙂
That isn't a big deal
one doubt:
#include
using namespace std;
int main() {
int a = 5;
a = (1, 2, 3);
printf("%d
", a);
return 0;
}
answer is 3 but associativity of ( ) is left to right.
similarly
for #include
using namespace std;
int main() {
int a = 5;
a = 1, 2, 3;
printf("%d
", a);
return 0;
}
answer is 1 but associativity of =(assignment ) is from right to left.
Sir why class 12 videos are not coming.
Please make those really fast❤
Class 12 videos are on apni kaksha
@@nishapawansingh1785 ha bro i know about that but since 2 days there have been no uploads for pcm
@@murlimonahargupta981 oo bro nii h🤣🤣
Input a number n and tell whether it is equal to, less than or more than 10: (using nested if)
#include
using namespace std;
int main(){
int n;
cin>>n;
if (n==10)
{
cout
Actually waiting for real ds lecture
In this lecture mam is in a hurry .
nice video but you missed the concept of short circuit in case of logical operators
i think it needed to be taught but koi na
at 4:08
i=i++ + ++i; why it is 1 and 3. Post increment is like first use the value in expression (if any) and then save expression value to the LHS part then increment the LHS value. so It should be i= 1+ 2=3 --> i= 3++ --> 4 Answer. it is as per definition.Please correct me if i am wrong . wny we increment value of 1 2 times from 1 to 3.. it is not right because we are incrementing value of i before using its value which is 1. PLEASE ANSWER MY DOUBT
is there anyone who can answer my above doubt. waiting from yesterday?
i find solution by myself. if anyone has same doubt can ask
A video series on GATE would help a lotttttt.
Very well explained didi, Thank you very much:)
Sir plz upload class 12 notes and videos becoz boards are near
Yaar class 12 videos are on apni kaksha
@@nishapawansingh1785 abhi sirf electrochemistry ki video h usmain bhi abhi topic bje hue h
Bhayya can you give index of this course.it will be helpful for us.
iss playlist ka sbse pehla video open krke dekho starting ke kuch min me dikhaya h aman ne course me kya kya pdhne wale ho wo sbb.
First lecture me hai bhai
check out the video in which he demostrated to download vs code
ye topic pre - post was hell of confusing for me . and you made it clear like it was nothing all along .
Bhaiya we want a telegram group students who have justed coding and you 7 people faculty to help us in solving contest problem especially teacher are important as they know our level and so that they could give us right approach to work with them and they can assist us too
Come on! This was not at all taught by my University. Great Work.
th-cam.com/video/IJ2HvPoJSW4/w-d-xo.html
I want only the background music of vid. 😍
Ye di bohot accha padhati hai❤️
When is the web development course going to be out
Aman: saans to lene de be..😂😂
thankyou , please keep going , this video is clearing my doubts !
It's confusing 📈
Nahi hh 😢
Shut up bro it's not confusing
Abe ❤de if you understood that doesn't mean everyone got understood@@rdxsamya8061