I understood like below (comments inline):
without malloc:
----------------
madhu@Ideapad:~/Desktop$ ./a.out
-1217282060 // char *p is not pointing to anything so garbage is printing
124 ...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: madhu542 Search: Search took 0.05 seconds.
Results 1 to 9 of 9
|
Click Here to Expand Forum to Full Width |