Click here to Skip to main content
15,885,537 members

Comments by Sharyar Javaid (Top 19 by date)

Sharyar Javaid 2-Aug-23 12:30pm View    
Thank you so much! One more question : If i do: String greet = new String("hello") , I know the string "hello" will be allocated to the HEAP but at the same time this "hello" will also be created in String Constant Pool? so in the next line if I do: String greet2 = "hello" , greet2 will point to the already existing "hello" by greet in the String Constant Pool or it never existed there because of new keyword of greet?
Sharyar Javaid 6-Nov-22 15:36pm View    
Got it. but one thing, you saying like I Can't do anything with loops and termination conditions is quite wrong and judgemental. if you'd like to assume that by just one single problem that does not raise questions on that book.. its rather your own assumption. what I meant to say which I couldnt properly emphasize to you was your calloc function. is what I havent seen yet in that book. Also I was confused behind the logic of this if ((ch != '\r')
Sharyar Javaid 6-Nov-22 15:30pm View    
still thanks for the solution
Sharyar Javaid 6-Nov-22 15:27pm View    
Deleted
Got it. but one thing, you saying like I Can't do anything with loops and termination conditions is quite wrong and judgemental. if you'd like to assume that by just one single problem that does not raise questions on that book.. its rather your own assumption. what I meant to say which I couldnt properly emphasize to you was your calloc function. is what I havent seen yet in that book. Also I was confused behind the logic of this if ((ch != '\r')
Sharyar Javaid 6-Nov-22 14:44pm View    
also if you have time can you please explain what are you doing in the separate function with the conditions and loops. I have studied functions and recursions for basic maths like finding factorial, etc but this function's logic is hard to grasp for me