0 votes
124 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 54 views
asked May 15, 2022 in C program by Doubtly (98.9k points)
0 votes
1 answer 76 views
0 votes
0 answers 53 views
0 votes
0 answers 51 views
0 votes
0 answers 46 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

506 users

...