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
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 |
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 |
what is the difference between exit() and _exit() functions?
What character terminates all strings composed of character arrays? 1) 0 2) . 3) END
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); }
Program to display given 3 integers in ascending order
How does struct work in c?
Determine the result of performing two successive block transfers into the same area of a frame buffer using the binary arith operations
What is the maximum no. of arguments that can be given in a command line in C.?
What functions are in conio h?
What are the different types of constants?
What does p mean in physics?
Why c is called a mid level programming language?
What compilation do?
7 Answers Geometric Software, Infosys,