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:
49 comments Page 2 of 5.
Vinita said:
1 decade ago
@Saru.
Does the value of val and num automatically get incremented?
And if val1 was not initialized what value it would have taken ?
Does the value of val and num automatically get incremented?
And if val1 was not initialized what value it would have taken ?
Abhishek n said:
5 years ago
Can we skip particular numbers in declaring number ie, for example after var1=5 can we make it to write var2=10?
Please explain me.
Please explain me.
Bal said:
1 decade ago
Hey I think m little bit confused user defined data types are typedef n enum and derived data types are structure array etc.
Hari said:
1 decade ago
Actually primary data types are OK. But user defined data type does't contain pointer array, they are derived data type.
Arpit said:
1 decade ago
string is a user defined datatype because we can define string as char name[20] string is an array of character.
Varshitha said:
1 decade ago
What is the difference between user defined and derived datatypes?
Can you tell me what is void data type?
Can you tell me what is void data type?
Jjjay said:
1 decade ago
We can't write long int l = 2.35;
If you want to declare long int.
Write it like this:
long int l=2.35L
If you want to declare long int.
Write it like this:
long int l=2.35L
Naina said:
8 years ago
In 1, int char & float. All are premitive data type. Then why the answer is not both 1&2?
Laasya said:
2 decades ago
Can you explain me in detail the difference between structure, union and enum operations?
Rakesh kumar said:
1 decade ago
Can you explain me in detail the difference between structure, union and enum operations?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers