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

Differentiate between #include<...> and #include '...'

1069


What is meant by realloc()?

1165


How would you obtain the current time and difference between two times?

1298


the question is that what you have been doing all these periods (one year gap)

2095


What is difference between structure and union?

1142


How to get string length of given string in c?

1070


What is union in c?

1124


What does the error message "DGROUP exceeds 64K" mean?

1235


Are enumerations really portable?

1036


What are the two types of structure?

1096


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1838


What is a c token and types of c tokens?

1072


Is c# a good language?

1022


What is omp_num_threads?

1092


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2261