why in C,C++'s int size is 2 byte and .net(c#) int Size is 4
byte?
Answer Posted / king
according to me, c,c++ is the base of pop and oop all language. any person learn any language in deep then his/her base language is clear. so the c and c++ language is most used clear to base logic of all people.so it's int type occupies 2 byte only whereas .net language is used enterprize level and professional level to make application,this language is not used to clear base logic but used to make enterprize and web based application,in web based or professional application numeric variable requirement wide range,in this place 2 byte is less to used in application so the increased size of int in .net language to used wide range of size to make perfect enterprize application and standlone application..(eg. viza card,credit card,ATM card,passport,etc's number is very long)
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
What is const volatile variable in c?
What is the difference between mpi and openmp?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Do character constants represent numerical values?
What is the value of h?
What is the use of #define preprocessor in c?
What is a function simple definition?
What is the 'named constructor idiom'?
Explain how can a program be made to print the name of a source file where an error occurs?
How to declare a variable?
Where is volatile variable stored?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Can you define which header file to include at compile time?
Why isnt any of this standardized in c?
Is c programming hard?