python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Comparison of string lengths in C using strlen
I am quite confused with the behavior of strlen,the for loop below never ends (without adding the break) when try it, while the i < -2 should return False in the first step.
Is it related to my com...
Luke
Votes: 0
Answers: 2
How to disable implicit conversion changes signedness warning in CMAKE
Does anybody know if there is a way to disable this kind of warning given by clang in CMAKE please ?
std::vector<float> v{1.f, 2.f, 1.f};
int i = 1;
float foo = v[i]; // Here we get the warning,...
Jojolastiti
Votes: 0
Answers: 0
What causes this code to trigger implicit int narrowing?
The following code makes clang to fail when -Wc++11-narrowing is specified
#include <stdint.h>
extern uint8_t numbers[];
extern int n;
uint8_t test(int num) {
uint8_t a{n > 0 ? *number...
Miguel Ángel
Votes: 0
Answers: 1