how do i use malloc
Type: Posts; User: thamiz
how do i use malloc
i have a question
say if int a counter called goodrowcounter;
when i int the array[goodrowcounter][width];
my compiler say error: variable-sized objects may not be initialiased.
what can i do to...
Would a counter be advisable
hi there
well all the files will have a variable width of 0 to 50, and a variable height of 0 to 80. But my program can find the height and width of the file. But the problem lies when i want to...
Actuauly no i don't know. Because the width and height keeps changing.
my program will find find the width and height of the file. Bu the problem is i don't know how to specify the size of the...
Hi there oh ok
but there is only one problem, my code is too genearlised.
the width and height of the array will change according to the file i open. so any idea, on how i can manipulate the width...
How would i go on about traversing the the 2d array..
Thanks in Advance
thanks boss
what is wrong with my code
it is print out junk values for some reason
#include <stdio.h>
int main(int argc,char *argv[]){
int row;
int col;
int goodrow=0;
Hi the not following about traverse, i'm just a beginner so can you go though it with me...
please.
thanks in advance
[/code]
Hi well technically i can't because i don't know the size of the array i'm using.. i will jst have to open the file they give me and the program will have to do that for me.
[code]
Hi there
i need some help manipulating a 2d array.
For example
say i have an 2d array
int array[20][21]={{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, //Crop this
...