c++ Programming Glossary: list_1
When is an object “out of scope”? http://stackoverflow.com/questions/10080935/when-is-an-object-out-of-scope the moment the object exits the scope if myCondition Node list_1 new Node 3 Node list_2 new Node 4 Node list_3 new Node 5 list_1.. new Node 3 Node list_2 new Node 4 Node list_3 new Node 5 list_1 next list_2 list_2 next list_3 list_3 next null In other words.. null In other words would the Node being pointed to by list_1 call its destructor after this line Node list_1 new Node 3 ..
finding size of int array http://stackoverflow.com/questions/2037736/finding-size-of-int-array size sizeof arr1 sizeof arr1 0 cout size endl int main int list_1 1 5 7 8 1 1 4 5 7 7 7 8 10 20 size list_1 return 0 It can not.. int main int list_1 1 5 7 8 1 1 4 5 7 7 7 8 10 20 size list_1 return 0 It can not print the right size c arrays share improve.. N Correctly prints the size too cool trick int main int list_1 1 5 7 8 1 1 4 5 7 7 7 8 10 20 size list_1 return 0 share improve..
|