C Programming - Declarations and Initializations - Discussion
Discussion Forum : Declarations and Initializations - General Questions (Q.No. 7)
7.
Which of the following is not user defined data type?
1 : |
|
2 : |
|
3 : |
|
Answer: Option
Explanation:
C data types classification are
- Primary data types
- int
- char
- float
- double
- void
- Secondary data types (or) User-defined data type
- Array
- Pointer
- Structure
- Union
- Enum
So, clearly long int l = 2.35; is not User-defined data type.
(i.e.long int l = 2.35; is the answer.)
Discussion:
48 comments Page 3 of 5.
Chandini agrawal said:
1 decade ago
We can't declare a variable as a digit. Then how is it correct to write int 1 = 2.35?
(2)
Kavitha said:
1 decade ago
int float char also not a userdefiend data then why it comes answer is both 1 and 2
Amol Kotwal said:
1 decade ago
What is difference between Long int and Float data types?
Can anyone explain it?
Can anyone explain it?
Namrata said:
1 decade ago
Both 1 and 2 is the write answer. enum is user defined in c#. Rest are not.
Reshma said:
1 decade ago
String is user defined data type or primary data type? can anyone explain.
Satish said:
8 years ago
What is the structures and union?
Can I get clear explanation about that.
Can I get clear explanation about that.
Kumar said:
1 decade ago
So basically only secondary data types are user defined? am I correct.
Padma said:
1 decade ago
Yes kavi but there is a user defined data type. It is not in it.
Shiva said:
1 decade ago
Then what is "long int l = 2.35;" data type called ?
Thanvi said:
1 decade ago
What is the difference b/w primitive n nonprimitive data type?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers