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
code for replace tabs with equivalent number of blanks
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
Is there anything like an ifdef for typedefs?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
How can you find the exact size of a data type in c?
Can we change the value of #define in c?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
What is getch() function?
I came across some code that puts a (void) cast before each call to printf. Why?
What is 2c dna?
explain what is an endless loop?
What is pointers in c with example?
Which is better oop or procedural?
Why is c called "mother" language?
In C, What is the #line used for?