Question: Write C program which reads three values of types char, int and float from STDIN and prints, appropriately formatted, assigned values and variable types. For

Write C program which reads three values of types char, int and float from STDIN and prints, appropriately formatted, assigned values and variable types. For example, if letter, number and real are variables of type char, int and float respectively, and if the values assigned to them are a, 1 and 3.1415, then the output should be:

a is a character 1 is an integer 3.1415 is a real number

NOTE: question asks for C program (not c++!)

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!