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
Where are c variables stored in memory?
Difference between strcpy() and memcpy() function?
What are the two types of functions in c?
What is ## preprocessor operator in c?
What is the heap in c?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
How do you view the path?
What is line in c preprocessor?
What is size of union in c?
what is ur strangth & weekness
What is the data segment that is followed by c?
Explain the use of #pragma exit?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
i want to know the procedure of qualcomm for getting a job through offcampus
What is difference between array and pointer in c?