Data Types in C

A data defines a set of values that a variable can store along with a set of operations that can be performed on that variable. C supports several different types of data, each of which may be represented differently within the computer’s memory. It has four basic data types which is listed in table below.


img

void is also considered as data type which either explicitly declares the return type of a function where the function doesn’t return any value or creates generic pointers.

In addition, there are a number of qualifiers (or modifiers) that can be applied to these basic types.

  • Short and long are applied to integers to provides different sizes. Shorts is often 2 bytes and long is 4 bytes
  • Signed and unsigned may be applied to char or any integer
  • • Use of signed on integers is redundant

The basic data types with qualifiers are listed in table below


img

About the Author



Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.

We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc





 PreviousNext