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

Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

0 Answers  


how 2 compile & execute c program with out using editor?

2 Answers   HP,


What are static variables in c?

0 Answers  


Explain the concept and use of type void.

0 Answers  


Fifty minutes ago if it was four times as many mints past 3 o clock. how many minutes is it to six o'clock n how....?????

3 Answers   TCS,






What are directives in c?

0 Answers  


what is memory leak?

3 Answers  


what is the use of c program?

4 Answers   Synergy, Web Synergies,


If the size of int data type is two bytes, what is the range of signed int data type?

0 Answers  


4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. i have done maximum par but i m findind problem in the commented area. please help...

3 Answers  


Why do we use c for the speed of light?

0 Answers  


char ch="{'H','I',0};printf("%s",ch);what is output

9 Answers   Accenture,


Categories