1
You visited us
1
times! Enjoying our articles?
Unlock Full Access!
Byju's Answer
Other
Quantitative Aptitude
Divisibility Rule for Powers of 2 & 5
The number of...
Question
The number of tokens in the following C statement printf("i = %d, & i = %x", i, & i); is
10
Open in App
Solution
The correct option is
A
10
∴
The number of tokens in the C statement is 10.
Suggest Corrections
7
Similar questions
Q.
The number of tokens in the Fortran statement DO 10 I = 1.25 is
Q.
What is the output of the following 'C' program?
main()
{
int i=2;
printf("%d%d,++i,++i);
}
Q.
Let 'a' be an array containing n integers in increasing order. The following algorithm determines whether there are two distinct numbers in the array whose difference is a specified number S > 0
i = 0; j = 1;
while (j < n)
{
if (E)
j++;
else if (a[j] — a[i] = = S)
break;
else
i++;
}
if (j < n)
printf("yes");
else
printf ("no");
Choose the correct expression for E.
Q.
What is the output of the following 'C' fragment ? for
(
i
−
1
,
j
−
10
;
i
<
6
;
+
+
,
−
−
J
)
p
r
i
n
t
f
(
"
%
d
%
"
,
i
,
j
)
;
Q.
What is the output after for loop executes for (i =0; i<10;++i)
Printf("%d", i &1);
View More
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
Related Videos
Factorising Numerator
QUANTITATIVE APTITUDE
Watch in App
Explore more
Divisibility Rule for Powers of 2 & 5
Other Quantitative Aptitude
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
AI Tutor
Textbooks
Question Papers
Install app