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)
scanf ends my program and no error is thrown
I am a beginner in C and I encountered problems when dealing with scanf, hoping for an explanation behind this
this is my code
#include <stdio.h>
#include <math.h>
#include <string.h>...
Electron X
Votes: 0
Answers: 3
String::from() a string literal differs in length for "o" and "ó". Why?
I am learning Rust and I wanted to play around with slices, but this made me "discover" that string literals "o" and "ó" differ in length.
This code:
fn main() {
let ...
hc0re
Votes: 0
Answers: 1
Passing a string variable into a function parameter in Javascript
I have a dozen or so trigger fields on a webpage that I'd like to consolidate. I'm attempting to add a 'data-target' attribute to the HTML tags that have event listeners which will correspond to the t...
Dssii3056
Votes: 0
Answers: 2
Change char at index from char pointer
I know that the following is invalid:
char *string = "Some String":
string[1] = 'v';//INVALID
But how can I achieve the desired behavior here, without changing the type of string to some so...
figbar
Votes: 0
Answers: 2