C Data

C supports data formats that work much like Visual Basic's data formats. For example, C supports the following kinds of data:

  • A single text character

  • Integers

  • Floating-points (decimal numbers)

C supports several types of integers and floating-point data such as long and short integers as well as single-precision and double-precision floating-point decimal data. Unlike Visual Basic, C does not support a string data type. Although C has some built-in functionality to handle strings in some situations, generally the C language leaves it to the programmer and functions to handle strings. C doesn't support an intrinsic string data type. Therefore, the only text-based data type that C supports is a single character.

All of C's character literals ...

Get Absolute Beginner's Guide to Programming, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.