User profile: bhargavah

User info
User name:bhargavah
Email:hemant.bhargava7@gmail.com
Name:Hemant Bhargava
Location:Bangalore
History
Joined:
Number of posts:8
Latest posts:

Out-of-bounds access (ARRAY_VS_SINGLETON)
Somebody told me this and I am agree with this alternative.. You cannot store the result of sprintf...

Out-of-bounds access (ARRAY_VS_SINGLETON)
Need little help.. [code] #include <iostream> int main() { int bit = 1; int init = 0xf ^ (1 <<...

Resource leak..
Yes. Smart pointer seems to be optimal solutions to avoid these kind of leaks. Thanks.

Resource leak..
[code] #include<iostream> int* func_b() { int *c = new int; return c; } int main() { int* b ...

Interesting puzzle + function pointers?
I think my question is not clear to everyone here who is trying to answer it. Let me try to explain ...