Why data types in all programming languages have some range?
Why ritche have disigned first time likethat?Why not a
single data type can support all other types?

Answers were Sorted based on User's Feedback



Why data types in all programming languages have some range? Why ritche have disigned first time li..

Answer / vignesh1998i

good morning ,

ya ur doubt is absolutely correct.... in the real time operation a human being can easily process and seperate the numbers and character s etc etc categories since we have got our own intelligence .... but when we come to computers they dont have... so we are the users , we make instructions to make it understand it.... if we make the computer to understand like us , there will be no difference between that and a human being... upto certain level only we can make computers to understand........ using intelligence we are differenciating things...... but in computers it will be very complex to it understand... like this we can keep on arguing with lots of points..........


thank u

Is This Answer Correct ?    4 Yes 2 No

Why data types in all programming languages have some range? Why ritche have disigned first time li..

Answer / nitin

Different data types and ranges require different amounts
of memory.
To optimize memory use and processing speed, practical
limits are set.
Ultimately everything has to be processed in binary, so
more complex characters require translation which takes
additional time, processing capacity, and memory.
Small differences when multiplied by billions of processes
have an impact.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

0 Answers   HCL,


What is the size of enum in bytes?

0 Answers  


Is c still used in 2019?

1 Answers  


Write a program to find minimum between three no.s whithout using comparison operator.

4 Answers   IBM,


Why main is not a keyword in c?

0 Answers  






application attempts to perform an operation?

0 Answers  


main() { unsigned int k = 987 , i = 0; char trans[10]; do { trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' ); } while(k /= 16); printf("%s\n", trans); }

4 Answers   Vector,


what is the difference between const volatile int i & volatile const int j;

2 Answers   HCL,


If null and 0 are equivalent as null pointer constants, which should I use?

0 Answers  


Why is not a pointer null after calling free?

0 Answers  


print pattern 1 1 33 33 555 555 77777777 555 555 33 33 1 1

1 Answers   Winit,


Why do we use main function?

0 Answers  


Categories