0
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
5 Answers
+ 3
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[20]; 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);
+ 1
See this below Code
https://code.sololearn.com/c02M3hksbs5n/?ref=app
+ 1
Thank you sir . Code is exactly right . But i have not learned string . So i can't understand the %s and char name[ 20 ] .
+ 1
Abhay mishra Ur welcome bro đ
0
Thank you sir