What is the purpose of declaring a variable as unsigned?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dao in vc ++?

547


What is microsoft visual c++ 2010 x86 redistributable?

558


Explain pointer to the constant and constant pointer? Explain difference between them.

690


What is a copy constructor? What is the need for it?

579


What is odbc in vc ++?

635






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

555


Do I need microsoft visual c++ 2005 redistributable on my computer?

656


Can I remove microsoft visual c++?

601


In which Way invoke context-sensitive help inside the editor?

1786


How do I fix microsoft visual c++ 2015 setup failed?

585


Is visual c++ the same as c++?

575


What is vc++ programming?

690


Where can I find microsoft visual c++ on my computer?

603


What is cmutex?

587


What is the difference between turbo c++ and visual c++?

536