python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
I have a problem in C about reversing a string (reversing rows and letters
#include <stdio.h>
#include <string.h>
#define W 5
#define N 10
void print_(const char[W][N],int);
void reverse(char[W][N],int);
int main ( ) {
char words[W][N] ;
char test[N];
char endwor...
El Dimos Karam
Votes: 0
Answers: 1
How can I call the following void function with double parameters?
This is what I have currently, and I have no idea what to do to make it run:
void avg_sum(double a[], int n, double *avg, double *sum) {
int i;
*sum = 0.0;
for (i = 0; i < n; i++)
...
halolol
Votes: 0
Answers: 2
Program that prints prime numbers
Program that prints the 2 largest prime numbers in a given range from the user using recursion.
I want to get the 2 largest prime numbers in a range that is given by the user, but somehow it just prin...
User617290653251457439
Votes: 0
Answers: 2
Accessing elements in a 2D array in C
I am writing a program that passes a 2D char array into a function for printing. However, when I try to access elements in the 2D array for printing, I can't. This problem does not occur when I place ...
ncc1701e
Votes: 0
Answers: 1