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 some of commonly used methods provided by iunknown.

0 Answers  


Difference between getmessage, postmessage & peakmessage.

0 Answers  


What is ole? How do you handle drag and drop in ole?

0 Answers  


Name the most commonly used wizards?

2 Answers  


What is the difference between an MLE and an SLE?

1 Answers   Infosys,






What is the difference between Undo and Redo?

15 Answers   Google,


Differences between vc 6.0 and vc 7.0

1 Answers   Honeywell,


What property is used to indicate that the up-down control is associated with a buddy control?

1 Answers  


What is microsoft visual c++ 2015 redistributable package x64?

0 Answers  


How do I install microsoft visual c++ 2015?

0 Answers  


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

1 Answers   BirlaSoft,


Name the three types of loops used in C++ programs?

4 Answers  


Categories