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


Please Help Members By Posting Answers For Below Questions

Is there sort function in c?

785


How can I do peek and poke in c?

838


Was 2000 a leap year?

825


Explain what are the different data types in c?

948


Explain that why C is procedural?

890


Differentiate between a structure and a union.

1008


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

850


What is array in C

918


What is the time and space complexities of merge sort and when is it preferred over quick sort?

869


if p is a string contained in a string?

1607


How can I list all of the predefined identifiers?

756


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2414


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

1833


Explain a file operation in C with an example.

882


Explain how can I write functions that take a variable number of arguments?

799