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...

i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{
k+=j<10?4:3;
}

printf("%d", k);

Answer Posted / abi

all the above answers are wrong!
just think the below logic...

in for loop j=1+4*20 so j=81

81<10 is false...so 3 is assigned
k+=3 ie k=k+3
k=0+3
k=3


so answer is 3

Is This Answer Correct ?    15 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does do in c?

1121


Tell me the use of bit field in c language?

1111


What is a pragma?

1180


What are Macros? What are its advantages and disadvantages?

1228


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2024


Explain what is meant by high-order and low-order bytes?

1095


When is a “switch” statement preferable over an “if” statement?

1216


Tell me when is a void pointer used?

1248


How can I get the current date or time of day in a c program?

1275


What is #include called?

1105


What is the purpose of scanf() and printf() functions?

1304


Why doesnt the call scanf work?

1249


Explain how do you view the path?

1224


What is .obj file in c?

1135


When the macros gets expanded?

1492