BackTracking :
Starting at Root, your options are A and B. You choose A.
At A, your options are C and D. You choose C.
C is bad. Go back to A.
At A, you have already tried C, and it failed. Try D.
D is bad. Go back to A.
At A, you have no options left to try. Go back to Root.
At Root, you have already tried A. Try B.
At B, your options are E and F. Try E.
E is good. Congratulations!
Dynamic Memory allocation...........
--dynamic memory allocation refers to performing dynamic memory allocation in the C programming language via a group of functions in the C standard library, namely malloc, realloc, calloc and free.
malloc: allocates the requested size of bytes and returns a pointer to the first byte of the allocated space..
calloc:allocates space for an array of elements initializes them to zero and then returns pointer to the memory
free: frees previously allocated space
realloc:modifies the size of previously allocated space
0 comments:
Post a Comment