What is the purpose of declaring a variable as unsigned?

Answers were Sorted based on User's Feedback



What is the purpose of declaring a variable as unsigned?..

Answer / ganesh

-32768 to +32768 is the range of signed integer
0 to 65536 is the range of unsigned integer
so unsigned integer is used so that u can store value upto
65536 [just an example]

Is This Answer Correct ?    3 Yes 0 No

What is the purpose of declaring a variable as unsigned?..

Answer / satyagmk

The Unsigened types do not hold negative numbers; their
range is from 0 up to some maximum.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More VC++ AllOther Interview Questions

Explain the advantages of cwinthread class.

0 Answers  


What is the difference between Boxing and Unboxing in C#

1 Answers  


What is microsoft visual c++ 2017 redistributable?

0 Answers  


Do you need microsoft visual c++?

0 Answers  


How many microsoft visual c++ do you need?

0 Answers  


what is mean [] inc what is the use of include conio.h in c

1 Answers   BirlaSoft,


what is the difference between the codes written in the document class and view class

1 Answers  


how to declare and populate an array of checkBoxes

0 Answers  


How do I install microsoft visual c++ 2015?

0 Answers  


How do you define a function in vc++?

1 Answers  


How can we allow no selection of radio button in grouped radio buttons?

2 Answers  


What is more efficient to pass as a parameter--a pointer or an object? Why?

1 Answers  


Categories