1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

C Programming

Discussion in 'C' started by rajib, May 21, 2007.

  1. rajib

    rajib New Member

    May 18, 2007
    Likes Received:
    Trophy Points:
    I have a pointer to array declaration - char *properties[100] = {""};

    I declared this as GLOBAL and accessed this from a function. When I print the values before elaving the function, it works fine. When I try to print the same after the function call in main(), still its fine..but after sometime (I didn't use this variable in between), it seems to take junk automatically.....

    Can somebody pl suggest what to do to fix this?

    Thanks for help.

    Regards -
    Rajib Roy.
  2. DaWei

    DaWei New Member

    Dec 6, 2006
    Likes Received:
    Trophy Points:
    Semi-retired EE
    Texan now in Central NY
    Home Page:
    The declaration is very suspicious. What you are declaring is an array that will hold 100 pointers to char. Was that your intention? Explain what you are trying to do with your program and show some code that uses the declared array. Please remain aware that YOU know what your code is supposed to do -- we don't. Always strive to provide meaningful information. My gypsy fortuneteller is on vacation.

Share This Page