Search:

Type: Posts; User: zoso123

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,969

    yes i got what you were trying to say.. but i...

    yes i got what you were trying to say..
    but i just found that declaring any more pointers in my program causes seg. fault...
    here's the code...
    if i delelte any one of the colored part the seg....
  2. Replies
    8
    Views
    1,969

    hi.. i ve been rtying to do what u said.. but it...

    hi.. i ve been rtying to do what u said..
    but it gives me segmentation fault as soon as i try to declare another pointer..
    am i missing something here..
  3. Replies
    8
    Views
    1,969

    hey thanks that worked.. but i am unable to...

    hey thanks that worked.. but i am unable to rewind the pointer.. how do i do that?
  4. Replies
    8
    Views
    1,969

    can you elaborate.. afaik malloc is used for...

    can you elaborate..
    afaik malloc is used for pointers..
    i couldnt find its use to initialize arrays...
  5. Replies
    8
    Views
    1,969

    arrays with different sizes..

    i want to define arrays with different sizes..

    something like this..


    struct block{
    int id;
    int points[3];
    int cells[3];
    struct covar covariant[cells[0]][cells[1]][cells[2]];
  6. Replies
    5
    Views
    4,302

    thanks for the help guys..

    thanks for the help guys..
  7. Replies
    5
    Views
    4,302

    are the pointers also initialized to NULL?

    are the pointers also initialized to NULL?
  8. Replies
    5
    Views
    4,302

    Syntax error before '.' token...

    the following code is giving me the error:
    syntax error before '.' token


    struct point zero;
    zero.location[0]=0;
    zero.location[1]=0;zero.location[2]=0;...
  9. Replies
    8
    Views
    2,875

    @Dave_Sinkula: your suggestion works.. but...

    @Dave_Sinkula:
    your suggestion works.. but doesnt it reduce the efficiency of program since you have to pass the an array to a function.. my program needs very high efficiency and hence i am looking...
  10. Replies
    8
    Views
    2,875

    hmm..i m a little confused.. in this case.. if i...

    hmm..i m a little confused.. in this case.. if i have to pass the array to another function can i just pass the pointer?

    i think this may work..
    thanks..
  11. Replies
    8
    Views
    2,875

    pointer to multidimensional array..

    i have the following chunk of code..



    struct covar covariant[zeta_i][zeta_j][zeta_k];
    struct covar ***p_covariant;
    **p_covariant=&covariant[0][0][0];

    but it is giving seg fault while...
Results 1 to 11 of 11