i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{
k+=j<10?4:3;
}
printf("%d", k);
Answer Posted / vishal bhardwaj
ans is : 4
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can a number be converted to a string?
What are the three constants used in c?
Why do we use namespace feature?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Differentiate between functions getch() and getche().
What are the types of c language?
Can you please explain the difference between malloc() and calloc() function?
Why can't I perform arithmetic on a void* pointer?
How can I send mail from within a c program?
Explain output of printf("Hello World"-'A'+'B'); ?
Explain the process of converting a Tree into a Binary Tree.
Differentiate between Macro and ordinary definition.
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
What does d mean?
application attempts to perform an operation?