In your code.
Code:
scores[i] = value;
if (scores[i] == value)
{
dupe = 1;
}
In the code
Code:
if (dupe != 1)
{
scores[i] = value;
if (scores[i] == value)
{
dupe = 1;
}
if (dupe != 1)
{
#include <stdio.h>
#include <stdlib.h>
//function declaration
char *mystrcat(char *s, char *p);
int main()
{
printf("%s",mystrcat("David","Jones"));
}
//function defination
char *mystrcat(char *s, char *p)
{
static int k;
#include <stdio.h>
int main()
{
char str[] = "The quick brown fox jumps over the lazy dog" ;
int i,prev,w_len;
prev = w_len = 0;
for(i=0;i<sizeof(str);i++)
{
if(str[i] == ' ' || str[i] == '\0' )
{
w_len = (i - prev);
printf("\t%d\t%d\t\n", i,w_len);
prev = i +1 ;
}
Leave a comment: