i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{
k+=j<10?4:3;
}
printf("%d", k);
Answer Posted / valli
k=4
Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
What is a stream?
Explain is it valid to address one element beyond the end of an array?
What is external variable in c?
How can I recover the file name given an open stream or file descriptor?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
What is the return type of sizeof?
What is adt in c programming?
How can you be sure that a program follows the ANSI C standard?
Why should I use standard library functions instead of writing my own?
Can you assign a different address to an array tag?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Explain void pointer?
What is the function of this pointer?
How can I manipulate individual bits?
What is register variable in c language?