why in C,C++'s int size is 2 byte and .net(c#) int Size is 4
byte?
Answers were Sorted based on User's Feedback
Answer / mohit
because c and c++ language use ASCII code system.but in .net
and java use UNICODE system. where char size also 2byte.
| Is This Answer Correct ? | 14 Yes | 0 No |
Answer / 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 |
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
How can I discover how many arguments a function was actually called with?
What is the difference between scanf and fscanf?
How can I prevent another program from modifying part of a file that I am modifying?
array of pointer pointer to array pointer to pointer
How pointers are declared?
Explain pointers in c programming?
Write a c program to sort six numbers and find the largest one by using the ladder of if-else? plz do help me
1,1,5,17,61,217,?,?.
WHOT IS CHAR?
difference between loading and linking
what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????