When I joined the forum, in 2010, I started programming. In 2010 I got chosen to participate in my CS degree (I am still undergraduate, since the course is one of 4 years). So, what you hope for, is...
Type: Posts; User: std10093
When I joined the forum, in 2010, I started programming. In 2010 I got chosen to participate in my CS degree (I am still undergraduate, since the course is one of 4 years). So, what you hope for, is...
I can not understand why you need p_count.
In your function, size is 5. Then you have this (which is the only case returning true)
for (int j=0;j<size;j++) // Reason that j can not be five!
...