+ 2

Why the output is "no output"

I can't find the error of this.Can you help me? I think tge error is in the last area,the area of AGE https://code.sololearn.com/cnl6ts4I8Niz/?ref=app

9th Aug 2018, 3:17 PM
Hammad Yaqub
Hammad Yaqub - avatar
4 Respuestas
+ 4
https://code.sololearn.com/cn5qyIkjSb1W/?ref=app
9th Aug 2018, 9:45 PM
Headshot
Headshot - avatar
+ 3
In scanf if you put a & before the variable it works, like this: scanf("%s" , &first_name); Do that for the other two too.
9th Aug 2018, 4:45 PM
Paul
Paul - avatar
+ 2
& operator tells the address of a variable where the data will be stored. so to get input you have to write it like this scanf("%d", &age); same syntax for other types
10th Aug 2018, 2:09 AM
Lakhpreet Singh Haher
Lakhpreet  Singh Haher - avatar
+ 2
ok thank you very much to all for helping me
10th Aug 2018, 5:53 AM
Hammad Yaqub
Hammad Yaqub - avatar