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
What are the Advantages of using macro
What is meant by 'bit masking'?
What is difference between stdio h and conio h?
Explain the ternary tree?
Why does not c have an exponentiation operator?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is pragma c?
What do you understand by normalization of pointers?
Write a program in c to replace any vowel in a string with z?
What is a global variable in c?
Is the exit() function same as the return statement? Explain.
What is a memory leak? How to avoid it?
Which built-in library function can be used to match a patter from the string?
What is the g value paradox?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area