Guys need some advice. I am working on a algorithm for multiple string searching using OpenMp.
So within my program I am trying to initialise each elements of an array to a value of a variable.
What I mean by is say if I have array intialised as shown below:
lastI = textLength - patternLength int* Loc; Loc = malloc(sizeof(int) * control);
1. Now, I want to further initialise each elements within the array to a variable called
'textLength' as shown above which I am not sure on how to? :$
2. Also I have a variable called 'max' which I intend on using it for comparison in the latter part of the code. But I want to know as how I can set this max variable to the first element of the said array?