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
Differentiate abs() function from fabs() function.
Can a file other than a .h file be included with #include?
What is calloc() function?
why we wont use '&' sing in aceesing the string using scanf
Explain which function in c can be used to append a string to another string?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
How will you divide two numbers in a MACRO?
What are the application of void data type in c?
When is a “switch” statement preferable over an “if” statement?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
how we can make 3d venturing graphics on outer interface
What are static variables in c?
What's the difference between constant char *p and char * constant p?
Why is #define used?
Why do we need a structure?