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 / suchita

k=5 bcoz the statement k+=j<10?4:3;
here k+ increaments the value then assign to the k

Is This Answer Correct ?    1 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

code for replace tabs with equivalent number of blanks

2102


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

1028


Is there anything like an ifdef for typedefs?

1101


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2045


How can you find the exact size of a data type in c?

957


Can we change the value of #define in c?

960


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2504


What is getch() function?

1012


I came across some code that puts a (void) cast before each call to printf. Why?

1157


What is 2c dna?

1023


explain what is an endless loop?

1036


What is pointers in c with example?

1025


Which is better oop or procedural?

995


Why is c called "mother" language?

1234


In C, What is the #line used for?

2099