Coding Mechanics
Wednesday, February 8, 2012
How to print ASCII values in C/C++ using for loop
for(unsigned int i = 0 ; i< 256;i++ )
{
cout<<i<<" "
<<(char)i;
if(i%4 == 0 )
cout<<endl;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment