Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. anxious7

    No casting to a constant memory value

    is casting inevitable ?
  2. anxious7

    No casting to a constant memory value

    it's for an embedded system
  3. anxious7

    pointer to constant char

    why this is not working ? [code] char* ptr= "Hello"; *ptr='s'; printf("%s\n",ptr); [\code] and this does [code] char a[] = "Hello"; char* ptr= &a; *ptr='s'; printf("%s\n",ptr); [\code]
  4. anxious7

    is deallocates means delete ?

    I don't care if it is wrong. i need to know for some reason what's the exact behavior of free
  5. anxious7

    is deallocates means delete ?

    sorry i'm confused because with *obj1.x1=40; *(obj1.x1+1)=50; free(obj1.x1); printf("%d \n", *(obj1.x1+1)); the result is 50
  6. anxious7

    No casting to a constant memory value

    what should i do in order to avoid casting in this situation ? (unknown data type) *ptr = 0x00102f3c;
  7. anxious7

    is deallocates means delete ?

    struct mystruct {int *x1; int x2;}; struct mystruct obj1; obj1.x1 = malloc(5*sizeof(int)); *obj1.x1=40; free(obj1.x1); printf("%d %d \n", *obj1.x1, obj1.x2); at printf *obj1.x1 is 0.

Part and Inventory Search

Back
Top