 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can print ASCII value of each character of string by passing string into function using pointer. Before starting, you can note my information, you can follow or subscribe my YouTube channel through the URL youtube.com slash sanjaygupta underscore text school. You can download my programming app Techimage, which is available on Google Play. Now I am going to implement a solution of this problem with the help of C programming. So first I am including a header file stdio.h. Now I am declaring a function whose name is print. Its written type is void and it will receive an argument of character pointer type. So this statement is function declaration. Now inside main function, I am going to declare a character array. With the help of printf, I am going to display the message enter string. The entered string will be stored inside str through gattas function. Now I am calling print function and I am passing str string inside it. So this statement is function calling and then I am writing return zero. So this is the definition of main function. Now I have to define print function definition. So here this block will be known as function definition. P is a pointer which will receive address of this str character array. So str's base address will be stored inside p pointer. Now I can access all the elements of str through p pointer. So for that purpose, I am implementing a while loop. So this condition is strp not equals to null. So p is containing an address. It is dereferenced with the help of this strs sign. So this strs will be providing value available at the address which is stored inside p pointer. So if it is not equals to null then condition will be true. So I can print that character with percent c and with percent d format specifiers. So I am printing the character as well as its ask I value. So both character and its ask I value will be printed on console. Then I am incrementing p by one. So p plus plus means p will be pointing to the next address which is available in str character array so that all the characters along with their ask I values will be displayed on console. I can also print the message string with ask I values. So this message will be displayed first and then characters along with their ask I values will be displayed. So this is the complete implementation of the problem. Now I am executing this code. I'm entering my name Sanjay as input. You can see the output string with ask I values. So each character is displayed with the help of its ask I value. So this way I have printed ask I value of each character which is available in the character array. And I have passed character array into function and in function that arrays processed with the help of pointer. So I hope you have understood how we can print ask I value of each character string by passing string into function using pointer. If you want to watch more programming related videos you can follow or subscribe my YouTube channel through the URL youtube.com slash the underscore text school. You can download my programming app Techimates which is available on Google Play. Thank you for watching this video.