I think you meant rerversing words in a string. If words are split only by spaces the function would look like this: void reverse_words(char...
Check out my function to find longest common substrings: #include <stdio.h> #include <string.h> int LCS(const char *str1, const char *str2)...
What is the size of your array for input string? 65? :) Show us your code (remember to use CODE tags and indentations).
Functions like clrscr or getch are very old and not recommended to use.
#include <math.h> struct complex_rectangular { double real; double imaginary; }; struct complex_polar { double absolute;...
change_val function requires address to int, not int value: change_val(a);
#include <stdio.h> #include <stdlib.h> #include <string.h> #define PROCESS_NAME "syslog" #define TEMP_FILE_NAME "temp.txt" #define...
Try to overload or modify this operator definition with const char *ch parameter.
1. C++ source files should have .cpp extension, not .c . 2. Include files for C++ standard library don't require .h extension: #include <iostream>...
I don't quite get why p[1],p[2],p[3],p[5],p[8] should be the result. I'm giving you the algorithm to calculate sum and difference for each pair,...
sprintf doesn't handle b format specifier Read more about printf
#include <stdio.h> int main() { const char *p[11]; int i, j, a[11][2]; p[0] = "(0,1)"; p[1] = "(0,5)"; p[2] =...
'mysql_real_connect' : too few arguments for call Which part of this error message you don't understand? mysql_real_connect function requires...
This is what you get when you explicitly cast pointer returned by malloc. To call this function an appropriate header needs to be included -...
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct solution_s { int *jumpTable; int jumpCounter; int steps; }...
Separate names with a comma.