I,m trying to shorten a char[] by a specified number, and for some reason, I've got more characters in my new char[]. Can you help me fix this? When ...
I,m trying to shorten a char[] by a specified number, and for some reason, I've got more characters in my new char[]. Can you help me fix this? When ...
I am working on a program written in C that recursively walks a given directory in order to print out the Nth largest files and their sizes in bytes. ...
I have a debugger class which implements a printf() c style method. It looks like this: It is used like this: It is working very well. Now i wan ...
I recently came across this solution to writing a program that capitalizes each word in a string and I'm trying really hard to understand it, but I ca ...
any help will be appreciated. Im sure this is something simple im doing but I can't figure out why this keeps printing commas instead of S's ...
I tried to reverse this char array with null characters in the middle and the end, without using string length. (original code) I expected the outp ...
Expert's help needed on Java 2d Array: Need to capture everything in 2d array So that I can track the path of the car. I request for help from so ...
I'm trying to run one of examples delivered by Raspberry for Raspberry Pi Pico. It is an example to read data from GPS module via I2C. Raw data from G ...
char array gives inappropriate and unworthy output. Here I was making a binary converter everything is well but the output like this 'a ■wô▀╓vè▄╨ ...
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 , ho ...
This is my program: Click link to see the program In this program, When I print the string c using the following line: It gives the following ou ...
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 unnece ...
I am attempting to create a program that will take in a simple password and generate a newer, more complex password with certain characters being chan ...
I am trying to make a program where it asks the user the number of shelves and number of positions on those shelves from the user then it asks the use ...
I am trying to write an effective code to reverse Case in kotlin . HeLLo 5worLD6 -> hEllO 6WORld5 5 and 6 are swap as they have equal difference ...
I couldn't understand why var is coming 6, how is it calculating ...
So, I'm having a difficult time wrapping my head around using arrays and pointers in functions. I want to print the following array of chars using a f ...
tl;dr I'm just looking for two functions, f from double to string and g from string to double, such that g(f(d)) == d for any double d (scalar and re ...
This was a problem involving an array of chars and uses recursion. I understand partly how to solve it, but I can't seem to output how many times the ...
** I understood how the function getline is working, it simply assigning value in each s[] array address which gets stored into the char line[] array ...