• Convert string to ascii c programming.
  • C program to find ascii value of a string or character.
  • C program to print ascii value of alphabets.
  • Now we will write a C program to print ASCII value of each character of a String.

Program #1: Write a C programming code to print ASCII value of String.

  1. #include <stdio.h>
  2. #include <stdlib.h>
  4. int main(int argc, char *argv[])
  5. {
  6.     char str[100];
  7.     int i=0;
  8.     printf("Enter any string to get ASCII Value of each Character \n");
  9.     scanf("%s",str);
  11.     printf("ASCII values of each characters of given string:\n ");
  12.     while(str[i])
  13.          printf("%d \n",str[i++]);
  15.     getch();
  16. }


Print Ascii value of string character c program

Instance Of Java

We will help you in learning.Please leave your comments and suggestions in comment section. if you any doubts please use search box provided right side. Search there for answers thank you.
Newer Post
Older Post

No comments

Leave a Reply

Select Menu