No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
#include <stdio.h> #include <stdlib.h> #include <math.h> #define MAX 100 char fwd[MAX]; void squeeze (char c, char S[]); void printBackwards (char S[]); int main (void) { char S[MAX], c; printf("Enter a character: "); scanf("%c", &c); printf ("Enter a string max 99 characters: "); scanf("%s", S); printf("\n"); printf("FWD:"); squeeze (c, S); //error …
#include <stdio.h> #include <string.h> int main() { void check(char*, char *[]); char *array[] = {"one", "two"}; char *test = "one"; check(test, array); } void check(char* test, char* array[]) { int i; for(i = 0; i <= 1; i++) { if(strcmp(array[i], test) == 0) { //Do whatever } else { //Do …
The End.
jayarajtk