It's "She" actually!
Type: Posts; User: Farnaz
It's "She" actually!
I know about vectors and I do use them in my programs but I just thought it would be more convenient to use arrays in this case.
I thank you all, esp whiteflags!
thank to you, I think I'm gettin a deeper undrestanding of arrays, static arrays and stuff.
my whole function is this: (it is supposed to divide a by c and puts the fractional parts-up to b digits- in the following elements of array s)
int* function(int a,int c, int b, int[])
{
int...
thank you both but I have like 5 or 6 arrays in my program and I have wrote the whole program with arrays. if I wanna change them to vectors then I'll have to develop the program from the beginning....
I did this:
int s[1000];
int* function(int a,int c, int b,int*s)
{
.
.
.
so would it be ok if I declare a global array, then use it in the function and return it when the function is over? I think it might lead to the same mistake.
I have called this function several...
Hi all. I’m writing this program in which I use a function that returns “int *”. Actually I wanted an array to be returned and since it’s not possible, I return array s at the end of the function(...