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


Please Help Members By Posting Answers For Below Questions

What is a pragma?

671


How can I determine whether a machines byte order is big-endian or little-endian?

622


What are the data types present in c?

630


Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.

686


Differentiate between declaring a variable and defining a variable?

610






What is the role of && operator in a program code?

569


What are the primitive data types in c?

579


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1570


Describe the modifier in c?

604


What is a file descriptor in c?

563


How can I find out if there are characters available for reading?

648


What is string length in c?

615


Explain what will the preprocessor do for a program?

605


Explain the difference between call by value and call by reference in c language?

648


Does free set pointer to null?

565