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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain high-order and low-order bytes.

671


‎How to define structures? · ‎

636


Where we use clrscr in c?

712


Is that possible to store 32768 in an int data type variable?

695


string reverse using recursion

1817






What is c variable?

557


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

723


What Is The Difference Between Null And Void Pointer?

650


How do we open a binary file in Read/Write mode in C?

685


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3192


Why does this code crash?

623


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

1863


What does %d do?

729


Why can’t we compare structures?

818


How can I recover the file name given an open stream or file descriptor?

600