No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello, could someone help me create a program that will take in separate strings from a user and then output it all on one line in random order? This is what i have so far: [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> int compareStrings(const void *pStr1, const void *pStr2) { … |
|
Hi im trying to allocate memory using malloc(). Also, im trying to make a copy of the string before i allocate it. So im using strcpy(). But im still having issues with compiling it. please help!! [CODE] #include <stdlib.h> #include "setup.h" char *run( const char * const str ){ strcpy(str) … |
|
Hello, I'm fairly new to C. But my question is simple. I am creating a program that will take in 4 characters from the keyboard(1 at a time). Then it will display these 4 char on one line but in order as they were inputted. (In one print function).What code … |