+ 2

Significance of declaring an array named 'name', as "Hello" in this code?

void main() { char name[]="Hello"; int l; l = strlen("name"); printf("%d ",l); }

5th Jan 2019, 6:01 AM
Vijaya Mishra
Vijaya Mishra - avatar
6 Antworten
+ 2
Anna yes, my question never said Hello is the array name
5th Jan 2019, 6:33 AM
Vijaya Mishra
Vijaya Mishra - avatar
+ 2
Anna but thanks :) I got my answer 😃
5th Jan 2019, 6:35 AM
Vijaya Mishra
Vijaya Mishra - avatar
+ 2
Why? 🤔😆 Also, thankyou so much for the help Anna 💯
5th Jan 2019, 6:45 AM
Vijaya Mishra
Vijaya Mishra - avatar
+ 2
Because there is neither a question nor an answer in this thread. It's good to hear that you got your answer, but the thread doesn't have any value as it is
5th Jan 2019, 7:01 AM
Anna
Anna - avatar
0
Vijaya Mishra Yeah, technically you never asked a question neither. Ending a statement with a question mark doesn't make it a comprehensible question
5th Jan 2019, 6:35 AM
Anna
Anna - avatar
0
Vijaya Mishra Then feel free to delete this post.
5th Jan 2019, 6:35 AM
Anna
Anna - avatar