This Post Contains A C++ Program For Printing ASCII Values On Screen/Console With Correct Source Code & Output. This Program Is Written, Compiled & Executed At TurboC3.0 Compiler & Will Help You To Understand The Concept Of 'For-loop' From C++ Language. It Is A Well-Structured Program With Proper Comments Which Provides Step-By-Step Description Of Various Features Of The Language In A Simple & Easy-To-Understand Way.
# Note : You Can Simply Copy-Paste The Following Program Or Code Into Compiler For Direct Result.
C++ Program For Printing ASCII Values On Console.
# include <iostream.h>
# include <conio.h>
void main()
{
int i;
clrscr();
for( i=0;i<256;i++ )
{
if ( i != 26 && i != 29 )
{
cout<<i<<"="<<( char )i<<"\t";
}
}
getch();
}
Output :
The Output Will Be The ASCII Values Of All The Respective Characters, Which Are Valid.
# Note : You Can Simply Copy-Paste The Following Program Or Code Into Compiler For Direct Result.
C++ Program For Printing ASCII Values On Console.
# include <iostream.h>
# include <conio.h>
void main()
{
int i;
clrscr();
for( i=0;i<256;i++ )
{
if ( i != 26 && i != 29 )
{
cout<<i<<"="<<( char )i<<"\t";
}
}
getch();
}
Output :
The Output Will Be The ASCII Values Of All The Respective Characters, Which Are Valid.
No comments:
Post a Comment