Discussion :: Declarations and Initializations
-
Which of the following is not user defined data type?
1 : struct book { char name[10]; float price; int pages; };
2 : long int l = 2.35;
3 : enum day {Sun, Mon, Tue, Wed};
- Primary data types
- int
- char
- float
- double
- void
- Secondary data types (or) User-defined data type
- Array
- Pointer
- Structure
- Union
- Enum
Answer : Option B
Explanation :
C data types classification are
So, clearly long int l = 2.35; is not User-defined data type.
(i.e.long int l = 2.35; is the answer.)
Be The First To Comment