Maybe you were looking for...

why we can't access elements stored in a string after \0?

I wrote this program : #include <stdio.h> int main(){ char s[]="hi\0h"; for(int i=0 ;i<4;i++) printf("s[%d] = %c\n", i ,s[i]); // gives 4 chars 'h'-'i'

I have a problem with declaring an array. C language, Atmel Studio

this is my code and I have a problem with array. int main(void) { PORTD = 0x01; LCDOUT(); char count = 0; char firstLine[] = "Number of count"; cha

How to cast GORM query to string

I am writing a web app in go and using the GORM for my ORM. I need to be able to retrieve all the metrics of a certain user and return it via JSON to be display

Debug .NET Core source

I use Visual Studio 2019 and a .NET Core 3 web application. I'd like to debug .NET Core source code, so when an error occurs I can dive into the code and examin

Return an array without getting a Dangling pointer as result in C++

I want to return an array from a function in C++. I made this simple code to try to achieve it. #include <iostream> #include <vector> std::vector&l

Print the length of the longest subarray that is balanced javascript

Given an array of positive and negative integers, denoting different types of parentheses. The positive numbers xi denotes opening parentheses of type xi and ne

How can I fix the startsWith() error of java

I cannot figure out the startsWith(str) in the while loop below have the error The method startsWith(String) is undefined for the type InfoProcessor. I w