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 a pragma?
How can I determine whether a machines byte order is big-endian or little-endian?
What are the data types present in c?
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.
Differentiate between declaring a variable and defining a variable?
What is the role of && operator in a program code?
What are the primitive data types in c?
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.
Describe the modifier in c?
What is a file descriptor in c?
How can I find out if there are characters available for reading?
What is string length in c?
Explain what will the preprocessor do for a program?
Explain the difference between call by value and call by reference in c language?
Does free set pointer to null?