Why didnt ansi prescribe exact sizes for the primitive data


Problem

1. Write a program that prompts the user for an integer exceeding 10. Validate the user input with an if statement and print a suitable message for invalid input.

2. Why didn't ANSI prescribe exact sizes for the primitive data types? Is it possible for one machine to have the same size for int and long?

3. Are the expressions 5 / 3 and 5 / 3.0 equivalent? Explain with reasons.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Why didnt ansi prescribe exact sizes for the primitive data
Reference No:- TGS02671937

Expected delivery within 24 Hours