overrun Questions

5

Solved

I am unable to understand the following: In java, long l = 130L; byte b = (byte)l; If I print the value of b, why do I get -126? What is the bit representation of long l?
Reticulate asked 11/4, 2011 at 16:0

2

Solved

I have a simple program as below. struct Test { int a[5]; int b; }; int main() { Test* t = new Test; t->b = 1; t->a[5] = 5; //This is an illegal write cout << t->b << e...
Occipital asked 29/6, 2017 at 2:55
1

© 2022 - 2024 — McMap. All rights reserved.