Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Homework HelpRSS Feeds

Program to find ascii value of entered text or word for each character

Posted By: Madeline Ross     Category: C Programming     Views: 34156

Program to find ascii value of entered text or word for each character

Code for Program to find ascii value of entered text or word for each character in C Programming

#include <stdio.h>
#include <conio.h>
    void main()
    {
        char n[20];
        int i=0;
        clrscr();
        printf("\n Enter The Name : ");
        scanf("%s",n);
        while(n[i]!='\0')
        {
            printf("%d ",n[i]);
            i++;
        }
        getch();
}

/*
******
OUTPUT
******


Enter The Name : DHAVAL
68 72 65 86 65 76

*/
  
Share: 



Madeline Ross
Madeline Ross author of Program to find ascii value of entered text or word for each character is from Chicago, United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!