warning: passing argument 1 of 'function' makes pointer from integer without a cast
Passing arguments to a function that don't match the function's parameter types.
void processString(char *str) {
// Process the string
}
int main() {
int value = 42;
processString(value);
return 0;
}Pass arguments of the correct type to the function.
void processString(char *str) {
// Process the string
}
int main() {
char *text = "Hello";
processString(text);
return 0;
}