Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!