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

Describe the difference between = and == symbols in c programming?

779


Tell me is null always defined as 0(zero)?

675


What is bin sh c?

584


What are the 5 types of organizational structures?

550


What is an example of structure?

588






Explain what is a program flowchart and explain how does it help in writing a program?

650


What is sizeof return in c?

618


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

611


What is self-referential structure in c programming?

661


Is register a keyword in c?

638


Are the outer parentheses in return statements really optional?

578


how is the examination pattern?

1598


Who invented b language?

919


What are the features of c languages?

632


What is the -> in c?

586