Sunday, December 28, 2014

Datatype(3-ASCII value)

1:
#include <stdio.h>
///***ASCII value:
int main()
{
char num;
num=78;
printf("%c",num);
return 0;
}
output: N
/***here %c identifies 78th number ASCII value which is N ***/

2:
int main()
{
char num;
num='N';
printf("%c",78);/// ***here printf will show character value of num
return 0;
}

output: N

No comments:

Post a Comment