MCQOPTIONS
Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Testing Subject
General Aptitude
Logical and Verbal Reasoning
English Skills Ability
Technical Programming
Current Affairs
General Knowledge
Finance & Accounting
GATE (Mechanical Engineering)
Chemical Engineering
→
C Programming
→
Floating Point Issues
→
User-defined data type can be derived by__________...
1.
User-defined data type can be derived by___________.
A.
enum
B.
typedef
C.
struct
D.
All of above
E.
None of these
Answer» E. None of these
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What will be the output of the code snippet given below?#include <studio.h>int main (){ struct book { char bookname[20]; int totalpages; float price; }; struct book b = {0}; printf(("%d%f n", b.totalpages, b.price); return 0;}
Which of the following is the correct output fot the program given below?#include <studio.h>int main (){ struct emp { char name[40]; int age; float sal; }; struct emp e = {"Ramu"}; printf ("%d %f n", e.age, e.sal); return 0;}
Which of the following will stop the loop at the last node of a linked list in the following C code snippet?struct node { struct node *next; };
The number of distinct nodes the following struct declaration can point to is _____________.struct node { struct node *left; struct node *centre; struct node *right; };
What will be the output of the following C code?#include <stdio.h> struct MansWear { int size1; int size2; }; struct WomensWear { int size1; int size2; }; void fun(struct MansWear); int main() { struct WomensWear WW = {39, 42}; fun(WW); } void fun(struct MansWear MW) { printf("%d n", MW.size1); }
What will be the output of the following C code?#include <stdio.h> struct country { int code; char name[26]; } void main() { struct country c; c.code = 91; printf("India"); }
What will be the output of the following C code?#include <stdio.h> struct test { int num; } t; void func(struct test t) { t.num = 125; printf("%d ", t.num); } main() { func(t); printf("%d ", t.num); }
What will be the output of the following C code?#include <stdio.h> struct option1 { int m; int n; }; struct option2 { int m; int n; }; int main() { struct option1 opt1 = {10}; struct option2 opt2 = opt1; printf("%d n", opt2.m); }
What will be the output of the following C code?#include <stdio.h> struct option1 { int m; int n; }; struct option2 { int m; int n; }; struct option1 fun(); int main() { struct option1 opt1 = {11}; struct option2 opt2 = {21, 31}; opt2 = fun(); printf("%d n", opt2.m); } struct option1 fun() { struct option1 temp = {11, 21}; return temp; }
What will be the output of the following C code?#include <stdio.h> struct Calc { int m; int n; }; int main() { struct Calc c = {10}; struct Calc c1 = {11}; if(c == c1) printf("Equal n"); else printf("Not Equal 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