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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Munesh SharmaRank #174 · 13.9K reputationPosted Feb 13, 2015, 10:55 PM EST
But understanding concept of this go here
http://www.dotnetperls.com/sbyte
Riddhi ValechaRank #794 · 2.9K reputationPosted Feb 14, 2015, 1:25 AM EST
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....
VulpesRank #55 · 29.2K reputationPosted Feb 14, 2015, 7:26 AM EST
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.
Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Feb 14, 2015, 7:39 AM EST
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.