Question: Task 1: Writ a C program to: - Input five integers from the keyboard - Calculate and display their average without typecasting - Calculate and

 Task 1: Writ a C program to: - Input five integers

Task 1: Writ a C program to: - Input five integers from the keyboard - Calculate and display their average without typecasting - Calculate and display their average with typecasting - Display average with 2nd decimal approximation. Task 2: Write a C program to: - Use command line arguments in the main () function to input two integers at the command prompt. - Convert the integers to their ASCII equivalent. - If integer' ' 1 ' is entered, the complete ASCII table should be displayed. Task 3: Write a C program to determine the memory allocated by your compiler for char, int, short, long, float, double, long double and pointer datatypes. (Hint: use sizeof() built-in function). Also, find the maximum and minimum ranges of datatypes integer, short and float. Task 4: Compile and print the results of the non-compliant datatype conversions specified below. Suggest a complaint conversion and comment on the results. - Signed short int (x=3) to unsigned short. - 32-bit int (i=0xFFFFFF65 ) to char. - int k-INT_MAX+1 - int m=7.7 - char cl= - a ',, c= =b'; char result-cl +c2 - unsigned int u=(01) - int k=010000 to short - unsigned short a=45000,b=50000; int mult =(a * b)

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!