suppose i choose 5 is size of array when i enter the name more than the size of 5 it still give me the same output so what it really means of giving size in array if it can give me value more than i entered example ; char name[5]; printf("enter your name="); scanf("%s",&name); printf("your name is=%s",name);
Wow You are good The thing is You are able to store data more then the given limit just because of your compiler Your compiler is making that fixed limit flexible So try different compilers You can also try online c compilers You will get your answer BTW Thanks for submitting your query and Thanks for Watching
suppose i choose 5 is size of array when i enter the name more than the size of 5 it still give me the same output so what it really means of giving size in array if it can give me value more than i entered
example ;
char name[5];
printf("enter your name=");
scanf("%s",&name);
printf("your name is=%s",name);
Wow
You are good
The thing is
You are able to store data more then the given limit just because of your compiler
Your compiler is making that fixed limit flexible
So try different compilers
You can also try online c compilers
You will get your answer
BTW Thanks for submitting your query and Thanks for Watching
Hello Coding Sir
hlo bro
😀😀😀😀