Search Results

Search: Posts Made By: sgradywhite
925
Posted By sgradywhite
Expected b4 arAnagram
here is the code can't figure to make it work


#include<stdio.h>
#include<string.h>


void quickSort(char *arr, int si, int ei);

bool areAnagram(char *str1, char *str2)
{

int n1 =...
5,090
Posted By sgradywhite
thanks a lot I got it!
thanks a lot I got it!
5,090
Posted By sgradywhite
ok when I try to enter the value that is suppose...
ok when I try to enter the value that is suppose to be found in Array B but the output says it was in Array A

#include "stdio.h"
02#define MAXARRAY 12
03#define MAXARRAY1 6
04#define...
5,090
Posted By sgradywhite
now after fixing the return I got this error:...
now after fixing the return I got this error: segmentation error


#include "stdio.h"
02#define MAXARRAY 12
03#define MAXARRAY1 6
04
05int main()
06{
07 int a[MAXARRAY]; ...
5,090
Posted By sgradywhite
ok thanks now I have more errors with return that...
ok thanks now I have more errors with return that I want them to work.

I need the values to be found or not to be found in arrays.

Array.c: In function ‘main’:
Array.c:25: error: expected...
5,090
Posted By sgradywhite
Passing argument 1 of 'scanf' makes po
[CS241C-01@lewis ~]$ cc Array.c
Array.c: In function ‘main’:
Array.c:23: warning: passing argument 1 of ‘scanf’ makes po
Array.c:25: error: expected expression before ‘return’
Array.c:29: error:...
9,787
Posted By sgradywhite
ok thank you that is all I need to know
ok thank you that is all I need to know
9,787
Posted By sgradywhite
ok I did compile the code and I do see "a.out" in...
ok I did compile the code and I do see "a.out" in the directory. couldn't get to input part

---------- Post updated at 02:31 PM ---------- Previous update was at 02:28 PM ----------

ok I...
9,787
Posted By sgradywhite
I did compile this file and it didn't show any...
I did compile this file and it didn't show any error but when I execute it then it gave me error. I'm running this code in Unix. This is my first time by the way.
9,787
Posted By sgradywhite
Syntax error near unexpected token '('
I tried to execute the code but I got this error
./Array.c: line 9: syntax error near unexpected token '('
./Array.c: line 9: ' nvals = get_data(a,MAXARRAY);'




and
#include<stdio.h>...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 01:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy