User Profile
Collapse
-
I am using C language. -
can we declare a multidimensional array without providing size to it?
I need a multidimensiona l array and it should be declared without giving size to it.will it be possible? if so..please share your knowledge. -
thanks for such awesome support.I compiled and runned the same code on linux.it worked perfectly.
the problem is overflow.
my special thanks to everyone.Leave a comment:
-
i changed the datatype to unsigned long int.but could not resolve it.I am putting the code here.help me to resolve it....Code:#include <stdio.h> #include <ctype.h> unsigned long int fun(unsigned long int *v,unsigned long int *r); main() { static unsigned long int v[1][3]={{740,10,0}}; static unsigned long int r[1][3]={{20000,10000,0}}; unsigned long int result; result=fun(&v[0][0],&r[0][1]);Leave a comment:
-
-
what's wrong with the code below?
the result i am getting is not correct.And i do not know where the mistake is.. please help me.
...Code:#include <stdio.h> #include <ctype.h> int fun(int *v,int *r); main() { static int v[1][3]={{740,10,0}}; static int r[1][3]={{20000,10000,0}}; int result; result=fun(&v[0][0],&r[0][1]); printf("the result is %d",result);
No activity results to display
Show More
Leave a comment: