int main()
{
int days;
printf("enter days you are late");
scanf("%d",days);
if (days<=5)
printf("5o paisa fine");
if (days<=10&&days>=6)
printf("1rs fine");
if(days>10)
printf("10 rs fine");
if(days=30)
printf("membership cancelled");
return 0;
}

tell me whats wrong in this program? is it right?

Answer Posted / sandeep

Guys '&' is missing in the scanf statement

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does everyone say not to use scanf? What should I use instead?

680


Why do we write return 0 in c?

555


How do you list files in a directory?

563


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2537


How can I open files mentioned on the command line, and parse option flags?

594






Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2609


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

566


Why C language is a procedural language?

623


How can I invoke another program or command and trap its output?

617


What is structure pointer in c?

572


What is const volatile variable in c?

577


Which header file should you include if you are to develop a function which can accept variable number of arguments?

810


What is pragma c?

614


What are keywords c?

603


What is the size of structure in c?

702