For many other Language Programs related to C++ , Data Structure microprocessor 8086 etc... related to MSBTE, Computer engineering, IT ...visit our BLOG
#include<iostream>
using namespace std;
int main()
{
char str[20];
int n , count=0;
cout<<"enter no of characters present in array"<<endl;
cin>>n;
cout<<"enter string of"<<n<<" characters";
cin>>str;
while(count<n)
{
cout<<" ascii value of "<<str[count]<<" is "<<int(str[count])<<endl;
++count;
}
return 0;
}
Programs:-
For many other Language Programs of microprocessor 8086, C++ , Data Structures, etc subjects of msbte , computer engineering visit our BLOG
There are programs of
Object-Oriented Programing, Operators (logical, arithmethic ,relational,etc)
,exception handeling , inheritance ,string operations ,etc
No comments:
Post a Comment