Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

#include <stdio.

h>
#define phi

Int main()
{

Return 0;
}

Function
Return some value based on data type used for the function.
Before creating a C program we need to know the data type of C.
C provides certain types of data types
Ex.
Integer (int)
- Short: 2 bytes
- Long: 4 bytes
Real float.
- Single: 4 bytes
- Double: 8 bytes
Character (char)
Changed of character is called string.
C doesnt provide automate string, but we could manipulating the character to provide the string
Char A[ ] = EE 2014I / {EE 2014}i which is the way to create string.
Those 3 are the primitive data types which is the default one user define data type.
Bit binary digit
1 bytes 8 bits
Input
-

Getchar
Getc
Scanf

Output
- Printf

Real number = %f
String = %s
Single character = %c

You might also like