At the time when this channel started uploading videos of C, i was in my 2nd semester and for the first time in my life, I encountered with programming, I wish I had seen this channel's and this great teacher's lectures, I could have done better in that semester and further semesters. Now I am in 7th sem. 😒 It's like pehle kyu na mile hum !!!
@@gayatriprabhune6581 he did not say it is performed on ++, he said it is performed on i which is correct sizeof(i) returns the size of type of i which is int (4)
Sir you are...just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just.......... awesome sirrrr..........😊
because the sizeof integer is 4 bytes means var = 4 in the c99 standard if the type is not a variable length array inside the sizeof(..) is not evaluated, so the result is 5 4
Sir, i understand how the 5 is getting printed but i don't understand how the 4 is getting printed. It would be very kind of you if you explain this to me.
@@rsingh6216 Returns which Varaiable is it (var)? And, How it is an Integer? Plz..exp.. Then inside.. size of (i++). i++ only contains how it return( var)..?
No, any data type which doesnt have varying size. Example, arrays have varying length so arrays are evaluate but i++ is only variable and we know var is either 2 or 4 according to 32 or 64bit computer but either way it's a constant size so sizeof doesn't evaluate what is inside of it if data type is fixed length this is what I understood correct me if I'm wrong.
It says, in the very question, that the size of integer is 4, so, 5=4, 6=4, 7=4 and so on and since var equals to the size of 6, which is 4, the ouput for var is 4.
This channel is so underrated...
I was also hacked once by someone
This is first time ever , I am learning any language in such a depth .
Ur content is million dollar content sir , 🙏🙏🙏
This channel is a boon for beginners. Thank you for taking this initiative 😇
KNOWLEDGE IS SO FUN 2 ACHIEVE HERE.....👏👏👏👏👏
better video are coming than expectation keep it up
At the time when this channel started uploading videos of C, i was in my 2nd semester and for the first time in my life, I encountered with programming, I wish I had seen this channel's and this great teacher's lectures, I could have done better in that semester and further semesters. Now I am in 7th sem.
😒
It's like pehle kyu na mile hum !!!
Same feelings😪
Same here
Please tell me what should I do to excel in my bca classes. I want to be good at studying and score well. Please give me some tips 🙏
I heartly tq to u sir
I'm student of bca clg nidashushi Karnataka n i refer ur vedio for study
n now I won national computation at gadhinglaj
Sir can you tell me how the var value becomes 4?
@@kushaldas8496 var=sizeof(i++)
i is an integer variable, integer has 4bytes so var=4bytes
@@kwynart6399 sizeof()operator not operate on any ++ -- operator so your experation wrong
@@gayatriprabhune6581 he did not say it is performed on ++, he said it is performed on i which is correct sizeof(i) returns the size of type of i which is int (4)
excellent. sir upload lectures on a regular basis. very helpful
Love love love your way of teaching. God bless you sir❤️
We want this only
Please increase your team strength
And upload videos more fastly
Thank u
some people dislike this video cuz they thought it was the download buttom,
May God bless your works Sir
Simply I++ or I-- is not performed inside the "sizeof" operator....
Then how can it get 4 after 5
@@youtubesai6715 I++ or I-- inside a sizeof() function act like i...simple
Good Boy
Sir you are...just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just.......... awesome sirrrr..........😊
2
A) because no increment or decrement operation perform inside sizeof function, so i will ramain 5 and its size is 4. therefore ans is 5 4
Wow like a suspense movie 🎬 .. well played 👌
5 4 is answer
I think the sir who is teaching now is different from tge sir who teaches digital and ana analogue electronics. Is it true? Please clarify.
I finished all the videos on c and data structures.... Please sir uplaod algorithms
great question
the answer is 54
bow down in respect
plz upload more videos soon...
Answer is 5 and 4
Sir, can you pls tell me how the var value becomes 4 ?
because the sizeof integer is 4 bytes means var = 4 in the c99 standard if the type is not a variable length array inside the sizeof(..) is not evaluated, so the result is 5 4
Thank u hicham
Where i can get these type of questions for practice sir.
excellent
Thanks sir
The best👍👍👍👍
amazing!
I have a question you said c11 is the latest version and you're providing facts from c99 ?
Sir, i understand how the 5 is getting printed but i don't understand how the 4 is getting printed.
It would be very kind of you if you explain this to me.
Can i explain
@@rsingh6216 ya
@@hemalakshmi9044 sizeof() returns the size of the variable , since the variable is integer therefore it will return 4.
@@rsingh6216 OK tq
@@rsingh6216 Returns which Varaiable is it (var)?
And, How it is an Integer?
Plz..exp..
Then inside.. size of (i++).
i++ only contains how it return( var)..?
Super sir
Legend sir
Thank you sir for the video. But in turbo c,output :5 2.Plz reply why it so.
It's compiler dependent... If you are using 16 bit compiler, you will get 5 2... If you use 32 bit, then the answer will be 5 4...
the size of integer in your Compiler is 2, thats why you get 5 2. hope you understand.
@@shaikjohnybasha2689 16 bit? or u mean 64 bit i dont think anyone uses 16bits anymore
How 4 has printed?
Because integer is 4 bytes sizeof(i++) which is integar is 4....
what if it was ++i ??
++a Pre - increment operator
a++ post -increment operator ....
- - a pre - decrement operator
a - - post - decrement operater.....
Even then the sizeof prints 2 or 4 according to specs of machine since ++i is still an integer and integers are constant to your machine.
5 4
only i++ , ++i,i--,--i are not evaluated within sizeof() ???
Can you tell me how the var value becomes 4..pls
No, any data type which doesnt have varying size. Example, arrays have varying length so arrays are evaluate but i++ is only variable and we know var is either 2 or 4 according to 32 or 64bit computer but either way it's a constant size so sizeof doesn't evaluate what is inside of it if data type is fixed length this is what I understood correct me if I'm wrong.
@@kushaldas8496because its size is 4 bytes
may the ancient astronauts bless you
Guys they are providing everything for free and some idots dislikes these types of videos. I think they need mental treatment
How you get 4 sir in answer
It says, in the very question, that the size of integer is 4, so, 5=4, 6=4, 7=4 and so on and since var equals to the size of 6, which is 4, the ouput for var is 4.
The size of int in your system is 4byted so .it can vary from system to system
TRUE
sir plz makes videos regular basis 😂
You are god to me
false
Thank u
thank u