DATATYPES IN C PROGRAMMING
Hi Everyone
Today we are going to talk about the datatypes in the c programming language. There are 3 types of datatypes in c programming language. C is a programming language which is based on logic or we can say that c programming language is procedure oriented programming language where the process is important not the objects and structure.
So the three datatypes are
- Fundamental basic datatype
- Derived datatype
- User defined datatype
int. %d
float %f
Char %c
long int. %ld
We are going to use this format specifiers to specify the datatypes in function s like printf and scanf. Array and pointer are derived datatype because the are derived from fundamental datatypes like int *p; here *p is a pointer which is of integer type. The structure and union and enum is user-defined datatype because they are collection of basic datatype for example
struct s
{
int a;
char b;
float c;
};
Here you can see that there are more than one datatype or we can say that collection of datatypes and it is defined by user so it is known as user-defined datatype.
Thanks for watching.Stay tuned for next vlog on array and pointer.
Made by Great lord Shri Krishna
Comments
Post a Comment