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

Differentiate abs() function from fabs() function.

590


Can a file other than a .h file be included with #include?

682


What is calloc() function?

619


why we wont use '&' sing in aceesing the string using scanf

1777


Explain which function in c can be used to append a string to another string?

582






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

638


How will you divide two numbers in a MACRO?

707


What are the application of void data type in c?

690


When is a “switch” statement preferable over an “if” statement?

640


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

1836


how we can make 3d venturing graphics on outer interface

3996


What are static variables in c?

626


What's the difference between constant char *p and char * constant p?

651


Why is #define used?

788


Why do we need a structure?

583