What is a data type? It is means to identify type of data. When we are storing something in our program then we need to allocate some space for that purpose and while allocating that space we must also specify what kind of data is to be stored in the allocated space. Data types help to solve this problem. Give example of some data types? Int, char, float, void etc. are all examples of predefined basic primitive data types. Structures and Unions are user defined data types. Is it possible to bring about conversion from one data type to other? Yes, most programming languages provide ways for data to be converted from one data type to other. Data conversion can be both implicit and explicit. Implicit type conversion involves automatic type promotion. Explicit type conversion is also called type casting and may lead to loss in data precision. What are strings and how can they be represented in c language?
Strings are collection of characters written in particular order. In ‘c’ language they can be implemented by either making array of characters or by making pointer to character data type. Is there any difference between the two representations? Often pointers and arrays are considered to be same in case of c language however there is a small difference in both. In case of pointers data is accessed indirectly, so you first retrieve the contents of the pointer, load that as an address (call it "L"),