CPP Webinar : 2-D Arrays, Strings


What is the problem in this am not getting the output printed

@ashigupta.gupta570 You are not getting an output as your code is running into an infinite loop. Observe line number 5 and line number 6. Instead of i!=’\0’ and j!=’\0’ it should be a[i]!=’\0’ and a[j]!=’\0’

thanks
CAN PLZ TELL THIS TOO

what do you mean by :
initializer-string for array of chars is too long [-fpermissive]
char a[][3]={“abc”,“def”,“efg”};

this is an error in the code !! what does it mean

Check this. since each word is of minm length 3 the array must be initialized as char a[][4] since each word also includes a null character at its end.
char a[][3] was throwing an error.

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.