How do signed and unsigned numbers affect memory?
Answer / Shishir Saxena
Signed numbers in most systems, such as C/C++, use two's complement representation which requires an extra bit to signify the number as negative. On the other hand, unsigned numbers only need positive values, hence they don't require a sign bit. This means that for the same size (e.g., 32-bit or 64-bit), unsigned integers can store a slightly larger range of numbers compared to signed integers.
| Is This Answer Correct ? | 0 Yes | 0 No |
Define structure property in a heap?
Explain Linked List
What should be done in the base case for this recursive problem?
Describe binary tree and its property.
Why do we need arrays if all the operations that are performed on arrays can be performed on arraylist?
what is the different between B-tree and B+ tree.
Differentiate between file and structure storage structure.
Why do we use different types of data structures?
Describe the merge sort principle and what will be its time complexity?
What is data type with example?
What is declaring array?
What is the difference between hashmap and arraylist?