overflow tag

11 questions


1 answers
96 views
0
What are the problems caused by stack overflow errors?

No matter how much I look for information about stack overflow errors, there is no clear answer. Java documents show that the error java.lang.StackOverflowError is application says that the recursion ...

2 years ago

1 answers
89 views
0
Please explain why this code is vulnerable to buffer overflow

int func(char* str){ char buffer[100]; unsigned short len = strlen(str); if(len >= 100) { return (-1); } strncpy(buffer,str,strlen(str)); return 0;}It's a school assignment. They want us to write ...

2 years ago

1 answers
98 views
0
Java Coding 65kb Overflow Solution Question

There was a lot of Java coding, so there was an overflow. The code of method main(String[]) is exceeding the 65535 bytes limit I want to continue coding. What should I do?Eclipse Oxigen is in use

2 years ago

2 answers
137 views
0
Java recursive call stack overflow error

public static void main(String[] args) { // // TODO Auto-generated method stub int x =2; int n =5; long result = 0; for (int i =0;i<=n;i++){ result += power(x,i); }//end of i System.out.println(re...

2 years ago

1 answers
120 views
0
Apply css table scroll

I'm making a responsive webHold the outer layout with the bootstrap containerSplit into col-lg-5 / col-lg-2 / col-lg-5 structuresI made a table with scroll function in the col-lg-5 part.// <tabl...

2 years ago

1 answers
138 views
0
Why is (2147483648>0) true in C++?

At 32 bits, -2147483648 is the smallest value that the int type can express.But I think there is an overflow in the if statement.if (-2147483648 > 0) std::cout << true;else std::cout <<...

2 years ago

1 answers
116 views
0
Is there any way to detect int-type overflow in C/C++?

Please let me know if there's any other way I can do itI heard that there is an overflow flag in the hardwareI've never seen it on C/C++. int a, b, c;test=a*b;if (test/b!=a) {} //overflow detection -&...

2 years ago

1 answers
136 views
0
Is it good to sign up for stackoverflow site and use it?

There was a stackoverflow site.Would it be helpful to study coding if I registered as a member here?

2 years ago

1 answers
112 views
0
c26451 overflow error

Vector2(float _x = 0.0f, float _y = 0.0f): : x(_x), y(_y) {}float Magnitude() {return (float)sqrt(x * x + y * y);}There was an overflow error in return, but I don't know why it's a problem or how to f...

2 years ago

1 answers
121 views
0
stackoverflow.com certificate error

There is an error unable to enter the stackoverflow.com site.A few minutes after rebooting, that error occurs and I can't access the site.How can I solve it?It seems to be caused by the expiration of ...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.