Horje
how to find ascii value in c++ Code Example
c++ get ascii value of char
#include<iostream>
using namespace std;
int main ()
{
    char c;
    cout << "Enter a character : ";
    cin >> c;
    cout << "ASCII value of " << c <<" is :  " << (int)c;
    return 0;
}
how to find ascii value in c++
#include <iostream>
using namespace std;

int main() {
 char c;
 cout << "Enter a character: ";
 cin >> c;
 cout << "ASCII Value of " << c << " is " << int(c);
 return 0;
}
get ascii value of string in C++
int main()
{
 char *s="hello";
 while(*s!='\0')
  {
  printf("%c --> %d\n",*s,*s);
  s++;
  }
 return 0;
}




Cpp

Related
singleton unique_ptr Code Example singleton unique_ptr Code Example
singleton Code Example singleton Code Example
array length c++ Code Example array length c++ Code Example
unique_ptr singleton Code Example unique_ptr singleton Code Example
length of array c++ Code Example length of array c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11