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 dencom 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: *

  • Users: anxious7
  • Content: Threads
  • Order by date
  1. 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]
  2. 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;
  3. 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