i have 2 problems in this
first i am not able to initialize the dynamic array at once with zeroes like sir is doing althogh i believe we are using the same sublime text3 compiler.
when i iterate over the array the answer is coming out to be wrong
i have 2 problems in this
first i am not able to initialize the dynamic array at once with zeroes like sir is doing althogh i believe we are using the same sublime text3 compiler.
when i iterate over the array the answer is coming out to be wrong
Syntax for this is
Int *a = new int [n]
That’s because of your wrong implementation
See this for reference
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.