MCQOPTIONS
Bookmark
Saved Bookmarks
→
Technical MCQs
→
2D Transformation And Answers in Technical MCQs
→
void main(){ ..
1.
void main(){ int i=5; i = !i>10; printf("%d", i); }
39.The format identifier %i is also used for _____ data type?
A.
char
B.
int
C.
float
D.
double
Answer» C. float
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Variable names beginning with underscore is not encouraged. Why?
<pre class="result notranslate">void main(){ int i=5; i = !i>10; printf("%d", i); }</pre>39.The format identifier %i is also used for _____ data type?
<pre class="result notranslate"> void main(){ int c = - -14; printf("%d", c); }</pre>38.What is the output of this program?
<pre class="result notranslate">void main(){ int i=0, j=1, k=2, m; m = i++ || j++ || k++; printf("%d %d %d %d", m, i, j, k);}</pre>37.What is the output of this program?
<pre class="result notranslate">#include <stdio.h>int main(){ printf("%d ",sizeof(5.5)); printf("%d ",sizeof(50000)); printf("%d",sizeof('A')); return 0; }</pre>36.What is the output of this program?
<pre class="result notranslate">#include <stdio.h>int main(){ extern int i; i = 20; printf("%d", sizeof(i)); return 0;}</pre>35.What will be output when you will execute following c code?
<pre class="result notranslate">int main(){float x = 'a';printf("%f", x);return 0;}</pre>33.How would you round off a value from 6.66 to 7.0?
<pre class="result notranslate">int main(){char ch;ch = 128;printf("%d", ch);return 0;}</pre>32.What is the output of this program?
<pre class="result notranslate">#include <stdio.h>int main(){ signed a; unsigned b; a = 6u + -16 + 16u + -6; b = a + 1; if(a == b) printf("%d %d",a,b); else printf("%u %u",a, b); return 0;}</pre>30.By default a real number is treated as a
<pre class="result notranslate">#include <stdio.h>int main(){ printf("%d ",sizeof(2.5)); printf("%d ",sizeof(2)); printf("%d",sizeof('A')); return 0;}</pre>29.What is the output of this program?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply