strange problem

new topic     » topic index » view thread      » older message » newer message

Hmm.. that is bizarre. I'm working on a fairly small program
and shouldn't be filling up memory - no large sequences or 
nested loops or huge numbers.

Anyway this code works fine:

    puts(1,"R")
    printf(1,"%4d",like_table[4][1])
    printf(1,"%3d",like_table[4][2])
    printf(1,"%3d",like_table[4][3])

but this gives me a causeway error every time!

  printf(1,"R%4d%3d%3d",{like_table[4][1],like_table[4][2],like_table[4][3]})

Seems to me they are equivalent. Maybe the intepreter pushes 
one to many things onto some internal stack or something? I 
can use the first method but am wondering if my program is
near collapse for some other reason?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu