MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues
→
Which of the following share a similarity in synta...
1.
Which of the following share a similarity in syntax?
A.
1 and 2
B.
3 and 4
C.
1, 3 and 4
D.
1 and 3
E.
None of these
Answer» B. 3 and 4
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Which of the following is the correct output for the program given below?#include<studio.h>int main(){ union a { short int i; char ch[1]; }; union a u; u.ch[0] = 10; u.ch[1] = 20; printf("%d %d %d n", u.ch[0], u.ch[1], u.i); return 0;}
In the following C code, we can access the 1st character of the string sval by using _______.#include <stdio.h> struct { char *Name; union { char *Str; } u; } tab[15];
What type of data is holded by variable u int in the following C code?#include <stdio.h> union Example { int Nval; float Fval; char *Sval; } e;
What would be the size of the following union declaration? (Assuming size of double = 8, size of int = 4, size of char = 1)#include <stdio.h> union Test { double n1; int n2[10]; char n; }t;
Which member of the union will be active after REF LINE in the following C code?#include <stdio.h> union test { int n; float fl; char ch; }; union test t = {11,12.25, N }; //REF LINE
What will be the output of the following C code?#include <stdio.h> union U { int m; char s; }; int main() { union U u, uu; u.m = 65; uu.s = 32; printf("%d n", u.s); }
What will be the output of the following C code?#include <stdio.h> union { int n; char ch; }U; int main() { U.ch = 201; printf("%d n", sizeof(U)); }
What will be the output of the following C code?#include <stdio.h> union { int n; char ch; }U; int main() { U.n = 10; printf("%d n", sizeof(U)); }
What will be the output of the following C code (Assuming size of int and float is 4)?#include <stdio.h> union { int Nval; float Fval; } U; void main() { printf("%d", sizeof(U)); }
What will be the output of the following C code?#include <stdio.h> union Employee { int N; float F; }; void main() { union Employee emp; emp.N = 26; printf("%d", emp.N); }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies