it is showing inx addresses while i am storing i in it whose value starts form 1 and goes till a[i]==’\0’
Why my code showing indexes address
but why do i have to put for loop and why this happens when i don’t apply else condition…shouldn’t it be obvious that if if condition not satisfied then code after will run
if u dont use else
then that condition is always executed
if u use
if else condiiton then either of the condition will be executed and not both
the code runs but if u try to substitute the value of i , j
then the 2nd loop always executes hence giving wrong output
cout<<*out<<" ";
will only print the first element
since it is a pointer to the start of the array
