Significance of declaring an array named 'name', as "Hello" in this code? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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