0 votes
167 views
in C program by (98.9k points)
edited

Can I use “int” data type to store the value 32768? Why?

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
No. “int” data type is capable of storing values from -32768 to 32767. To store 32768, you can use “long int” instead. You can also use “unsigned int”, assuming you don’t intend to store negative values

Related questions

0 votes
0 answers 81 views
asked May 15, 2022 in C program by Doubtly (98.9k points)
0 votes
1 answer 116 views
0 votes
0 answers 75 views
0 votes
0 answers 89 views
0 votes
0 answers 115 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

561 users

...