Computer Science, asked by Ꚃhαtαkshi, 10 months ago

Write a program to display the values of various data types

please don't spam..​

Answers

Answered by Anonymous
2

Answer:

Sample Input and Output: Enter int, short int and long int values : 23456 212 43567184 Enter float, double and long double values : 3.21 4.5678 11.234567 Enter a character : A Given int value : 23456 Given short int value : 212 Given long int value : 43567184 Given float value : 3.210000 Given double value : 4.567800 .

Answered by bpnboruah
1

Answer:

Every data type in c has a format specifier that has to be Taken input through scanf. Scanf is a predefined function in c compiler which takes two parameters of arguments one the format specifier and other the variable. Now format specifier for int is %d for short is %d as well because both of these share same range till -32768 to 32767. For double is %lf and

long double is %Lf. For float is %f.

Explanation:

hope it's help☀ ☁☁ Have a

/\ good

/ \ day❕

/\/ \/\

~~

...

24/7 Keep smiling

Similar questions