Sam's Teach Yourself C in 21 Days
should cover most of those
Type: Posts; User: mrdibby
Sam's Teach Yourself C in 21 Days
should cover most of those
do you want to return a string or print it out?
Okay, that helped, thanks.
calloc'd
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char *reverse(char *input) {
int i;
int j = 0;
So I have this code that's supposed to reverse a string and upon printing of the returned result I get a segmentation error.
Now I put in several printf statements to test and I've found that the...
Yeah, again another thing I didn't state - the first character has to remain the same.
But your solution worked! I am now one step closer to understanding how programming works.
Thanks Dino,...
Hmm, okay, that definitely helped in one case, however I've tried inputting different names and when I input "marianne" I receive "mrniane"
now this makes the first part of the string correct...
ohh of course, thanks man, let me see if that solves the problem
Yeah, I didn't make myself clear enough, it is only meant to remove consecutive double letters. And those extra letters are meant to be removed as well as vowels.
The problem is not all of the...
Okay, so I had this assignment to do which I failed last week to make a simple program to change a string: first to remove double letters, then to remove vowels
Now I've probably misunderstood how...