C#.Net
1.when we use sbyte data type in Real time?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Afzaal Ahmad ZeeshanPosted Feb 14, 2015, 12:39 PM
You can use the sbyte when you're going to work with values that range from -128 and upto 127 only. Such as a classroom's students' data etc.
VulpesPosted Feb 14, 2015, 12:26 PM
Its main use is therefore when interoperating with unmanaged code.
Otherwise you'd probably prefer to use the byte type (range of 0 to 255) in those cases where a small numeric type is needed for manipulating binary files or images, converting between different encodings etc.
Riddhi ValechaPosted Feb 14, 2015, 6:25 AM
https://msdn.microsoft.com/en-us/library/d86he86x.aspx
--
As far as my knowledge goes, we don't use sbyte datatype in real life applications.
Reason - In real life application, the records are in lacs....
Munesh SharmaPosted Feb 14, 2015, 3:55 AM
But understanding concept of this go here
http://www.dotnetperls.com/sbyte