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 is the collection of communication lines and routers called?
How can I write functions that take a variable number of arguments?
What are near, far and huge pointers?
What is c token?
What is selection sort in c?
to find the closest pair
What is formal argument?
What is a const pointer?
What are header files and explain what are its uses in c programming?
c language interview questions & answer
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
Why void main is used in c?
Simplify the program segment if X = B then C ← true else C ← false
What is the scope of an external variable in c?
What does the function toupper() do?