I know but when u are out of options you will try anything just to get a solution.
Type: Posts; User: amir1986
I know but when u are out of options you will try anything just to get a solution.
I found the solution :P ..
left shift
temp=a[0];
for(i=0;i<n-a;i++)
a[i]=a[i+1];
a[n-1]=temp;
shift right
Hello there ,
can anyone write me a function that do shift right once of an array .
it should be circular.
the function gets pointer for an array and returns nothing .
I tried to google it...
Thanx man :D it worked..GOD i forgot that it's a type of an Elem .
I have this struct
typedef struct _Vector_t* Vector;
typedef void *Elem;
struct _Vector_t {
Elem *array;
int intOrChar;
int arraysize;