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

how i can design a user interface in vc++ for getting inputs from users

1 Answers   Path Finders, TCS,


What is microsoft visual c++ 2008 redistributable?

0 Answers  


How a dll will be sharable by more than one exe?

4 Answers   CA,


What function is used to trap all mouse messages?

1 Answers  


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

0 Answers  






What are the advantages of a message map

0 Answers  


What is a thread (VC++) and state the difference between Cmutex and Csemaphone?

0 Answers   Atos Origin,


Differences between vc 6.0 and vc 7.0

1 Answers   Honeywell,


What keyboard editor command is used for Undo?

1 Answers  


What is the difference between pointer and reference?

7 Answers   IBM, Microsoft, Tech Mahindra,


Explain the important features of vc++?

0 Answers  


Can I delete old microsoft visual c++?

0 Answers  


Categories