Please tell me problem in this code 🙏😑
I am not able to see any error in this code . https://code.sololearn.com/cKm4q8uqUTpI/?ref=app
G'day Abhay mishra you have forgotten to put & before your variables in scanf() eg scanf("%d",&age); Your char name can only hold 1 letter, so lucky you aren't trying to save %s into it. If you want an array you could declare it as char name; and refer to it with %s in scanf() and printf(). You also haven't put variables in your printf() statements. You can do something like printf("let him go, %c is not a criminal",name);
See this below Code https://code.sololearn.com/c02M3hksbs5n/?ref=app
Thank you sir . Code is exactly right . But i have not learned string . So i can't understand the %s and char name[ 20 ] .
Abhay mishra Ur welcome bro 👍
Thank you sir