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)
copying one string to another without using strcpy using while loop
So i recently stumbled on this code somewhere where it is copying one string to another using just one line of code with the help of a while loop , however , I am not able to understand as to how and ...
Prakhar Shankar
Votes: 0
Answers: 2
About Null character in C language
This is my program:
Click link to see the program
In this program,
char c[5] = "hello\0world";
When I print the string c using the following line:
printf("\nstring c=%s", c);
It ...
user18325082
Votes: 0
Answers: 1
Comparing two char arrays in Java
I am trying to compare two char arrays lexicographically, using loops and arrays only. I solved the task, however, I think my code is bulky and unnecessarily long and would like an advice on how to op...
Erik Kostadinov
Votes: 0
Answers: 2
Return char array C
I have a function that makes a string with a certain number of #. String is stored as in char array (at list I think this is it... I'm new to C). This string is generated inside a function called bloc...
Urban Županič
Votes: 0
Answers: 1