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
Describe the difference between = and == symbols in c programming?
Tell me is null always defined as 0(zero)?
What is bin sh c?
What are the 5 types of organizational structures?
What is an example of structure?
Explain what is a program flowchart and explain how does it help in writing a program?
What is sizeof return in c?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is self-referential structure in c programming?
Is register a keyword in c?
Are the outer parentheses in return statements really optional?
how is the examination pattern?
Who invented b language?
What are the features of c languages?
What is the -> in c?