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 |
1. main() { printf("%d",printf("HelloSoft")); } Output?
Can we access array using pointer in c language?
Why doesnt that code work?
Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
Why is c so important?
Describe explain how arrays can be passed to a user defined function
What does a run-time "null pointer assignment" error mean?
How do you determine a file’s attributes?
What is multidimensional arrays
What functions are in conio h?
we compile c program in 32 processor and 64 bit processor .exe file is created in both the processors. if we want to run .exe file in 64 bit processor which is created in 32 bit processor. is that .exe file is run or not if it is not run why?