Posts

Expressions

Image
 This chapter examines the most fundamental element of the C language: the expression. Expressions in C are substantially more flexible and powerful than in many other computer languages. Expressions are formed from these atomic elements: data and operators. Data may be represented by variables, constants, or values returned by functions. C supports several different types of data. It also provides a wide variety of operators. The Basic Data Types C89 defines five foundational data types: character, integer, floating-point, double floating-point, and valueless.  These are declared using char, int, float, double, and void, respectively. The size and range of these data types may vary among processor types and compilers. In all cases an object of type char is 1 byte. In 16-bit operators int is 2 bytes , in 32-bit and 64-bit operators int is 4 bytes. float is 4 bytes. double is 8 bytes. The type void either explicitly declares a function as returning no value or creates generic poi

Introduction to c-language

Image
History of c language Dennis Ritchie - founder of C language Here we are going to discuss a brief history of the c language.  C programming language was developed in 1972 by Dennis Ritchie at bell laboratories of AT&T (American Telephone & Telegraph), located in the U.S.A. Dennis Ritchie is known as the founder of the c language. It was developed to overcome the problems of previous languages such as B, BCPL, etc. Initially, C language was developed to be used in UNIX operating system. It inherits many features of previous languages such as B and BCPL. Let's see the programming languages that were developed before C language. C Is a Middle Level Language  C is often called a middle-level computer language. This does not mean that C is less powerful, harder to use, or less developed than a high-level language such as BASIC or Pascal, nor does it imply that C has the cumbersome nature of assembly language (and its associated troubles). Rather, C is thought of as a middle-le