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



why in C,C++'s int size is 2 byte and .net(c#) int Size is 4 byte?..

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

why in C,C++'s int size is 2 byte and .net(c#) int Size is 4 byte?..

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

Post New Answer

More C Interview Questions

How do i store a paragraph into a string? for example, if i input a long paragraph, the program will read the words one by one and concatenate them until no word is left.

1 Answers  


How can variables be characterized?

0 Answers  


how c source file in converted to exe file

5 Answers   KPIT,


Is reference used in C?

1 Answers  


What is a method in c?

0 Answers  






char *p="name"; printf(p);

1 Answers  


main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

1 Answers  


Why array is used in c?

0 Answers  


Explain what is operator promotion?

0 Answers  


What is data type long in c?

0 Answers  


wat is the output int main() { char s1[]="Hello"; char s2[]="Hello"; if(s1==s2) printf("Same"); else printf("Diff"); }

3 Answers  


int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

10 Answers   Wipro,


Categories