Question: 1. Write a C program to input and then display all the primitive data types. Use printf() & scanf() to get each type in succession,

1. Write a C program to input and then display all the primitive data types. Use printf() & scanf() to get each type in succession, e.g.,

Enter a character: You entered the character . Enter a floating-point number: You entered the floating-point number Etc.

Make sure you get character, int, short, long, float, and double. The int, short, and long should be signed AND unsigned. Take a screen shot of it working in all cases.

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!