Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 0 . Run the following program and post its output under this discussion. Compare the results with Java's equivalent primitive data types. #include #include

10. Run the following program and post its output under this discussion. Compare the results with Java's equivalent primitive data types. #include #include #include int main(){// Integer types printf("Type: char Minimum: %d Maximum: %d Size: %lu bytes ", CHAR_MIN, CHAR_MAX, sizeof(char)); printf("Type: unsigned char Minimum: 0 Maximum: %u Size: %lu bytes ", UCHAR_MAX, sizeof(unsigned char)); printf("Type: short Minimum: %d Maximum: %d Size: %lu bytes ", SHRT_MIN, SHRT_MAX, sizeof(short)); printf("Type: unsigned short Minimum: 0 Maximum: %u Size: %lu bytes ", USHRT_MAX, sizeof(unsigned short)); printf("Type: int Minimum: %d Maximum: %d Size: %lu bytes ", INT_MIN, INT_MAX, sizeof(int)); printf("Type: unsigned int Minimum: 0 Maximum: %u Size: %lu bytes ", UINT_MAX, sizeof(unsigned int)); printf("Type: long Minimum: %ld Maximum: %ld Size: %lu bytes ", LONG_MIN, LONG_MAX, sizeof(long)); printf("Type: unsigned long Minimum: 0 Maximum: %lu Size: %lu bytes ", ULONG_MAX, sizeof(unsigned long)); printf("Type: long long Minimum: %lld Maximum: %lld Size: %lu bytes ", LLONG_MIN, LLONG_MAX, sizeof(long long)); printf("Type: unsigned long long Minimum: 0 Maximum: %llu Size: %lu bytes ", ULLONG_MAX, sizeof(unsigned long long)); // Floating point types printf("Type: float Minimum: %e Maximum: %e Size: %lu bytes ", FLT_MIN, FLT_MAX, sizeof(float)); printf("Type: double Minimum: %e Maximum: %e Size: %lu bytes ", DBL_MIN, DBL_MAX, sizeof(double)); printf("Type: long double Minimum: %Le Maximum: %Le Size: %lu bytes ", LDBL_MIN, LDBL_MAX, sizeof(long double)); return 0; }11. Change the code of converter.c Download converter.cso that the min (0), max (300) and step (20) values of the table is received from the user via keyboard (use scanf and printf).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Describe Watsons attempts to popularize the science of behavior?

Answered: 1 week ago

Question

BPR always involves automation. Group of answer choices True False

Answered: 1 week ago