Untold Coding
31.6K subscribers
177 photos
5 videos
4 files
227 links
|| जय श्री राम ||
#100dayschallenge
Sharing HTML, CSS and JS magic
Join our Creative Journey!🎉
Download Telegram
How many number of times printf statement executed?
Anonymous Quiz
35%
5
22%
9
33%
10
10%
11
👍101👏1
Untold Coding
Consider the following C program: #include <stdio.h> int main( ) { int i, j, k = 0; j=2*3/4+2.0/5+8/5; k -= --j; for (i=0; i<5; i++) { switch(i+k) { case 1: case 2: printf("\n%d", i+k); …
Explanation


Total printf Calls

Summing up all the outputs from each iteration:

Iteration 1: 1 time
Iteration 2: 1 time
Iteration 3: 3 times
Iteration 4: 3 times
Iteration 5: 2 times

Total number of printf calls: 1 + 1 + 3 + 3 + 2 = 10

Still have any confusion, drop a comment 👇
👍81
How many quiz needed in a day ?
Anonymous Poll
22%
1
78%
2
👍4
#include <stdio.h>

int main()

{
int i;
for(i=1; i<=10; i++){
if(i>5){
break;
}
}
printf("%d",i);

return 0;
}
👍141
How many times printf will executed?
Anonymous Quiz
34%
4
34%
5
20%
6
12%
11
👍15
👍7
Output will be?
Anonymous Quiz
40%
A
28%
B
27%
C
5%
D
3👍3
Consider the C Programming

#include<stdio.h>

void print (int n) {
if (n <= 0) return;
print(n--);
printf ("%d", n);

}

int main() {
print(5);
return 0;

}
👍11
👍10🔥1👏1😁1
Consider the following sample of numbers: 9, 18, 11, 14, 15, 17, 10, 69, 11, 13 The median of the sample is

(a) 14

(b) 13.5

(c) 12

(d) 11
👍10
Answer?
Anonymous Quiz
21%
A
61%
B
11%
C
6%
D
👍4
Question of the day

A person sold two different items at the same price. He made 10% profit in one item, and 10% loss in the other item. In selling these two items, the person made a total of

(a) 1% profit

(c) 2% profit

(b) 1% loss

(d) 2% loss
👍122
Ans?
Anonymous Quiz
35%
A
36%
B
23%
C
6%
D
👍32
Question of the day


A rectangular paper of 20 cm × 8 cm is folded 3 times. Each fold is made along the
line of symmetry, which is perpendicular to its long edge. The perimeter of the final
folded sheet (in cm) is

(A) 18
(B) 24
(C) 20
(D) 21
👍4
Answer?
Anonymous Poll
39%
A
30%
B
23%
C
8%
D
👍12
Question of the day


We reached the station late, and ___ missed the train.
Answer.
(A) near
(B) nearly
(C) utterly
(D) mostly
👍5🥰3😁2
?
Anonymous Quiz
10%
A
66%
B
15%
C
9%
D
6👍1
Question of the day
Answer?
Anonymous Poll
26%
A
38%
B
26%
C
10%
D
👍51👏1