Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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?

Answers were Sorted based on User's Feedback



int main() { int days; printf("enter days you are late"); scanf("%d",days..

Answer / hajera

1. & is missing in scanf and

2. if(days=30) one more equal is missing

instead of if(days == 30)
printf("membership cancelled")

Is This Answer Correct ?    2 Yes 0 No

int main() { int days; printf("enter days you are late"); scanf("%d",days..

Answer / sandeep

Guys '&' is missing in the scanf statement

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More C Interview Questions

What are void pointers in c?

0 Answers  


What is the difference between exit() and _exit()?

2 Answers  


what is inline function?

2 Answers  


What are the types of i/o functions?

0 Answers  


Explain goto?

0 Answers  


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

0 Answers   GrapeCity,


show how link list can be used to repersent the following polynomial i) 5x+2

0 Answers   CBSE,


what is different between auto and local static? why should we use local static?

0 Answers  


what is used instead of pointers in java than c?

1 Answers   Vuram,


Mention four important string handling functions in c languages .

0 Answers  


where do we use volatile keyword?

1 Answers  


What is the difference between malloc() and realloc()?

2 Answers  


Categories