Search:

Type: Posts; User: adarpodracir

Search: Search took 0.01 seconds.

  1. Dear Tim, Your workaround solves this false...

    Dear Tim,

    Your workaround solves this false positive nicely. However, I think this additional test will be time consuming for the loop.

    Thank you very much for reply.
  2. Dear dmh2000, Even doing some adjustments to...

    Dear dmh2000,

    Even doing some adjustments to the code to delete "numEdges", does not fix anything.

    Anyway, I have reported this bug at:

    Bug 13321 – Logic Error: "Assigned value is...
  3. Dear Salem. It produces the same logic error.

    Dear Salem. It produces the same logic error.
  4. The tool is called Xcode (4.3.3) and can be...

    The tool is called Xcode (4.3.3) and can be downloaded for free from the app store.

    Thank you very much for reply. I think the same. It looks like a false positive.
  5. LLDB is telling me that "assigned value is garbage or undefined"

    Dear C Board Community,

    I am having a hard time trying to understand why my lldb is telling me that line 53 could possibly run into problems for some cases.

    If there is a problem with the...
  6. Thanks a lot for all these answers. It is clear...

    Thanks a lot for all these answers. It is clear then that implementing this checking is a waste of time...
  7. Getting the data type of an unknown variable

    Hi,

    How can I get the data type of an unknown variable?

    For example, I want to do something similar to:



    int func(int x)
    {
  8. Replies
    10
    Views
    1,445

    Dear quzah, Thanks for the clarification.

    Dear quzah,

    Thanks for the clarification.
  9. Replies
    10
    Views
    1,445

    Dear oogabooga, Thank you very much for reply....

    Dear oogabooga,

    Thank you very much for reply. Everything is clear now!
  10. Replies
    10
    Views
    1,445

    Dear Subsonics, So this means that I only...

    Dear Subsonics,


    So this means that I only need to release memory when it was allocated dinamically?


    Thank you for reply.
  11. Replies
    10
    Views
    1,445

    Questions about releasing memory...

    Hi there,

    I have three questions.

    1. What is the difference between using:


    const char varchar[] = "this is an example";

    and
  12. Dear sparkomemphis, Thanks for reply. I think...

    Dear sparkomemphis,

    Thanks for reply. I think it is pointing to array3D_t. Then I am assigning the value of sizeDim1 to size[0].



    (* array3D).size[0] = sizeDim1;


    If this cannot be done....
  13. Dear claudiu, Thank you very much for reply. ...

    Dear claudiu,

    Thank you very much for reply.

    Could you please be more precise? I am a beginner in the programming world. :)

    I mean, what do you mean by I am declaring a pointer to an object...
  14. The error says that program received signal:...

    The error says that program received signal: "EXC_BAD_ACCESS" while executing this line:



    array3D->size[0]=sizeDim1;


    Any idea about the error and how it could be solved?

    I have another...
  15. Three-Dimensional Array... Error while compiling

    Hi there,


    I am trying to compile the code shown below but an error appears while compiling. I have defined three functions in this code. The first function, * Array3D(), is used to allocate and...
  16. Replies
    5
    Views
    6,361

    Another question... to free memory, I need to do...

    Another question... to free memory, I need to do this, isn't it?



    for (int i=0; i<msize[0]; i++)
    free(m[i]);


    free(m);
  17. Replies
    5
    Views
    6,361

    Ok... I did it! Thank you Quzah.

    Ok... I did it! Thank you Quzah.
  18. Replies
    5
    Views
    6,361

    Dear quzah. Do you mean this? int...

    Dear quzah. Do you mean this?




    int **Matrix(int (*matrixSize)[2]);
    int **Matrix(int (*matrixSize)[2])
    {
    int numRows=3; // number of rows.
    int numCols=5; // number of cols.
  19. Replies
    5
    Views
    6,361

    Returning a double matrix

    Hi there,

    Do you know how to make **myMatrix a double pointer? This is what I have done considering it an int pointer...




    int **Matrix(int (*matrixSize)[2])
    {
    (*matrixSize)[0]=3; //...
  20. Dear anduril462, thank you very much for the...

    Dear anduril462, thank you very much for the clarification. Everything is clear now.

    P.S. Foundation.h is a header (aka the Foundation framework) available for Mac OS X systems only and int64_t...
  21. Thank you very much, oogabooga. Now the code...

    Thank you very much, oogabooga.

    Now the code is running as expected. But, with your explanation I have lost the notion of pointers. :confused:
  22. Help using: typedef int64_t newtypedef[2]

    Hi there,

    Please, could anyone tell me why I am not getting the expected result when running this code?




    #import <Foundation/Foundation.h>

    typedef int64_t msize_t[2];
Results 1 to 22 of 22