Saturday, November 7, 2009

turbo c- codes and meanings

int is for integer
int

float is for floating point
float

double floating point is double
double

initialize a character is char
char

initialize a string is array
char a[x],b[x]

Specifiers are important especially if there are input or output value of variables using printf and scanf it specifies what type of variable it is represented a (%) percentage sign followed by a letter
%d for float
%f for charcters
%s for strings

No comments:

Post a Comment