Hello mam..!! Hatsoff to your patience and hardwork mam Its very helpful for poor people LIKE ME....! I'm currently doing a 1st semester bca.. Thanks a lot ma Your great lecture 💜
*THE RANGE OF SIGNED INTEGER IS LESS BECAUSE IN BINARY, TO REPRESENT NEGATIVE VALUES THE BINARY CODE IS INVERSELY REPRESENTED* - Example, 101 can be represented as a negative value as 010.
I watched your videos for the first time today and became your fan, You are such a cute and appropriate educator, made the concept very clear in a short time.
Range can be easily calculated from its size Example: if its size is 1 byte 1^8 2 byte 2^8 3 byte 3^8 4 byte 4^8 And according to sign (means signed or unsigned)you can classify its range
Bcz If i m calculating for 16 bit compiler The int will take 2 byte in memory So we can calculate range 2^16 that is fine But if I m applying same concept on char ..then what Char takes 1 byte in memory So 1^16 then that is one What is means range is one ?????? If that is not correct than what should be other method ??
i think you mean to do it like: 2^(size in bytes * 8) for unsigned int, float and most data types, 2^(size in bytes * 8)/2 for signed int and float, and the positive end of the range will have one less than the calculated value, so for an int on a 16bit machine that would be, 2^(2 * 8)/2 = 2^16/2 = 32,768, and hence the range is -32,768 to 32,767, the positive end is reduced by 1
1byte=8bits So 2bytes=2^8 bits 2^8=256 Signed range(+ and-)/ -128 to +127 (including zero) Unsigned range(+)/ 0 to +256 Similarly for 4 bytes also 4bytes= 2^(8*2) 3^(8*2)=65536 Again same story
Your videos are really helpful. Could you please suggest any book to read along, your pdf notes as a refresher. Also if you could suggest any book from where we can practice and write code for the programs. Danke shöne/Thank you very mcuh :)
#include #include int main () { int a = 32768; printf ("%d", a); getch (); return 0; } Mam it's not showing the answer you described..showing 32768 only...instead of -32768
Her examples are for 8-bit but if you check your system, it might be 16-bit. int may be 32 bits in your computer. 32768 will be ok for 32 bits (4 Bytes). You need a larger number to overflow 4 Bytes.
I am getting below error after running program showed at 11:21 if ($?) { gcc First.c -o First } ; if ($?) { .\First } First.c: In function 'main': First.c:9:9: warning: implicit declaration of function 'Clrscr' [-Wimplicit-function-declaration] Clrscr(); ^~~~~~ C:\Users\**\AppData\Local\Temp\ccSzwhIK.o:First.c:(.text+0x17): undefined reference to `Clrscr' collect2.exe: error: ld returned 1 exit status
Can anyone give answer plz? what happens if we take a=65537 in unsigned int and with 2bytes storage,taking "%u" as a format specifier? The range has been crossed then what happens?
Now that i finally am understanding C 😅 All thanks to you mam 💜
i don't understand how do you understand
@@superclashyt4 coz he/she is senior to u
Thank you for the c programming playlist. I am currently doing a coding boot camp and I really needed this! Love from South Africa❤
Aaah from s.africa am from Kenya can we make friends
Hello mam..!!
Hatsoff to your patience and hardwork mam
Its very helpful for poor people
LIKE ME....!
I'm currently doing a 1st semester bca..
Thanks a lot ma
Your great lecture 💜
*THE RANGE OF SIGNED INTEGER IS LESS BECAUSE IN BINARY, TO REPRESENT NEGATIVE VALUES THE BINARY CODE IS INVERSELY REPRESENTED* - Example, 101 can be represented as a negative value as 010.
I watched your videos for the first time today and became your fan, You are such a cute and appropriate educator, made the concept very clear in a short time.
Jai shree krishna
Mam apka bahut bahut dhanyawaad itna acha se samjhane k liye .
Thank you mam for your hard work,
Coaching karne ke liye jin talented students ke pass paise nhi hai, unke liye, ye video bahot hi use full hai,
I think im only the person in 2024 wathing ur c programming video in diploma
No iam also
No me also
Naahh 😅
Mee too
mee too
I'm 1st year computer science and engineering student, ur strategy awesome for learn
Range can be easily calculated from its size
Example: if its size is 1 byte 1^8
2 byte 2^8
3 byte 3^8
4 byte 4^8
And according to sign (means signed or unsigned)you can classify its range
How can u explain
Bcz If i m calculating for 16 bit compiler
The int will take 2 byte in memory
So we can calculate range 2^16 that is fine
But if I m applying same concept on char ..then what
Char takes 1 byte in memory
So 1^16 then that is one
What is means range is one
?????? If that is not correct than what should be other method ??
i think you mean to do it like: 2^(size in bytes * 8) for unsigned int, float and most data types, 2^(size in bytes * 8)/2 for signed int and float, and the positive end of the range will have one less than the calculated value, so for an int on a 16bit machine that would be, 2^(2 * 8)/2 = 2^16/2 = 32,768, and hence the range is -32,768 to 32,767, the positive end is reduced by 1
Thank you so much for your immense support and love for the students/learners
Thankyou mam... Love from Tamilnadu ♥️
Thank you so much mam bcoz of u I am learning much more than my college syllabus ..love u😍😍🤗
Informative and confusion video 🤔
18:34 32769. I Don't understand how you get that value?
extra ordinary level of knowledge... unbeliveable knowledge...
It is giving postive value for both %d and %u
Great teaching mam ,you teach far better than institute from where I am learning c for embedded system.
1byte=8bits
So 2bytes=2^8 bits
2^8=256
Signed range(+ and-)/ -128 to +127 (including zero)
Unsigned range(+)/ 0 to +256
Similarly for 4 bytes also
4bytes= 2^(8*2)
3^(8*2)=65536
Again same story
@@OTT.भारत nop it's 2^8
Happy learning 👍
2 bytes=16 bits?
@@infinity8982 yes
The lovely smiles you give make this c language easy and interesting to learn....
Thank you ma'am for providing such a wonderful video with better explanation
Wooow i like that
How it comes -32770 in unsigned integer bcoz the limit is till -32768 to 32767, and you have put 32766 in the eg. Of 32770. Plez clear this doubt mam
32770 value in signed is -32766 bro not -32770
@@rajuruppa3897 thanks so much bro 😥
Bro in signed is from -32768 to -32767 and for unsigned is from 0 to 32768+32767 that is 65535
Write bro
Formula -2^n-1 to 2^n-1 -1 where n is is number of bits
I watched 3 times this video the. I got it .tq
thanks a lot
wish u all success and happiness in life
best c program teacher you are maam .
THANKS MAAM... LOVE FROM BANGLADESH
Yo bro same to you🥰
from bd
How will the long int data type will take 4 bytes if the compiler size itself is 2 bytes???
Because we need bigger range of values
A big thanks Ma'am ♥️
Love u mam u teach so well that i am able to understand c language.. ❤️❤️
Thanks for your c class mam 😊🤝
So if we want to store 65536 in an int variable will it store 0 or will it show error?
Yes it will store 0 because we assume 0 is in a place of 65536
Mam I can surely say You are very much inspired by Alakh sir (PW)
Madam it gives positive value in signed integer while out of range
Your videos are really helpful. Could you please suggest any book to read along, your pdf notes as a refresher. Also if you could suggest any book from where we can practice and write code for the programs. Danke shöne/Thank you very mcuh :)
You are 🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻mam❤️❤️❤️❤️
You are too perfect teacher 🙏🏻 mam
Thank you for very good tutorial. :)
Sukriya mam 🔥🙏🔥
Your lecture is very good
Thank you mam for explaining this complex topics into simpler terms and please provide notes it's a request
Thank you so much 🙏🙏
Please explain 17:42. We are not understand.🙏🙏
Niceee explanation mam 🌝😃
Mam when you are writing code in c please use system
#include
#include
int main ()
{
int a = 32768;
printf ("%d", a);
getch ();
return 0;
}
Mam it's not showing the answer you described..showing 32768 only...instead of -32768
Yes I also got the same output
That is because in you computers integer have 4 bytes like me
You can try short int it have 2 bytes
@@beastmorph599 yeah
@@beastmorph599 yupp you are write
May be bcoz we use 64 bit os and int range is different for every bit🤔
Thank you so much mam! You really cleared my concepts 🥳😊
Output is given by compiler when we mention format specifier as %hd mam
Madam iam coding what you said in 10.00 minutes,it is showing how much I am writing in a.
mam the output we are getting for that program is 32768 only mam not changing the value for signed int.....can u please solve
#include
int main ()
{
unsigned int a=-32767;
printf ("%u", a) ;
return 0;
}
Output =4294934529 on one compiler
yes even i got the same
Your lecture is too good 🙂
Mam in the last example of -32767
I have got %d was correct and %u was something bigger number why it is so?
Hii mam you can explain telugu also mam please🙏🙏
really waiting for your video🥰
Please tell what is the purpose of using getch() ?
Please let me know where do i practice all that stuff?
mam, is this range is only for 16 bit?
mam i'm using online c compiler in that its showing there is no such liberary for #include. why it's showing like that mam please help!!
I have the same problem and I found out why
Because we're using linux
Conio.H is specific for windows
Most programmers don't use it
@@beastmorph599 right 👍
1st viewer 🎉
Thanks mam very very helpful
Mam I'm storing 32768 using %d nd the output is 32768 how ??🙄 Pls answer
Her examples are for 8-bit but if you check your system, it might be 16-bit. int may be 32 bits in your computer. 32768 will be ok for 32 bits (4 Bytes). You need a larger number to overflow 4 Bytes.
Nice lecture mam
i go for 35000 with %u and %d but both outputs are 35000 only.. Is it depends on laptop to laptop..
Mam after putting a=32768. I am getting the same value in positive i.e, 32768 mam there is no change in sign so what should I do now mam
I am also getting same value..
Because the bits of your computer is large
I had also same problem but just now I did it with Turbo C++ and everything is fine
@@asim9448 okk okk
@@asim9448 ok I will try it in turbo c
good lecture
Where do i do that programming....? I mean ...which application can i use to do all that stuff ?
Online c compiler
Mam PLZZ suggest software/app for practice coding...
Mam I had tried this sample program of int a=32768 but the output is resulting it shows an error i.e. function should be a return value
What is your storage of ur device?
Thank you ma'am.
From Bangladesh 🥰
You are great mam 😊
I am getting below error after running program showed at 11:21
if ($?) { gcc First.c -o First } ; if ($?) { .\First }
First.c: In function 'main':
First.c:9:9: warning: implicit declaration of function 'Clrscr' [-Wimplicit-function-declaration]
Clrscr();
^~~~~~
C:\Users\**\AppData\Local\Temp\ccSzwhIK.o:First.c:(.text+0x17): undefined reference to `Clrscr'
collect2.exe: error: ld returned 1 exit status
soo did u get the reason it showed error for clearscreen ?????
Mam can you explain why you wrote getch()
Thanks 😊 mem
Thank u mam. Mam please do video on java from scratch to advance. It would be helpful
Love you mam❤️❤️❤️❤️
Best mam🙏
Maam in print f we should enter the integer value....not percentage d or someting and y r u not using scan f link....
Thanks my teacher how can get links of this
Thank uu mam
Thank you mam
Mam,when we are using void main(),it is showing error .But when we use int main() the output is coming.
What error you are encountering with void main()
@@avarulprasad05 The output is not coming..
@@amrithashanmugam8059 I have tried with void main it is coming
Mam please give us notes it will help us a lot
Thanks
mam you taught for 16 bit compiler what about the 64 bit compiler please reply with a video mam
We have to use int main for void main
yes same doubt
Madam can u plz provide the Notes
And also plz teach me in telugu language also 🙏
Can anyone give answer plz? what happens if we take a=65537 in unsigned int and with 2bytes storage,taking "%u" as a format specifier? The range has been crossed then what happens?
mam please upload lectures on java also and also upload interview questions on C programming on your RUclips channel please
Hlo mam #include is showing error plzz reply me😊😢
can we get notes of these lectures?
Super
mam i m using window 10 64bit laptop. and i m getting all the same values in output as i m providing in input. Nothing is happening like u exaplaining
thnq mam...
THanks ma'am✔️✔️✍️
Mam notes kaha milenge ??
Mam please give us notes to write please mam your tell amazing but small request we need notes about C programming
thanku mam......can u provide notes to us?
bhai notes mile the tumhe.....
@@IT__HarshMishra na bhai
How we deside given int is sign or unsign
suggest me some good online compiler for c??????
Madam please do the videos on java(oops)