 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can print Ascii value of each character available in a string by passing string into function. Before starting, you can note my information, you can follow or subscribe my YouTube channel through the URL youtube.com slash sanjaygupta underscore tech school. You can download my programming app tech image, which is available on Google Play. Now I am going to implement solution of this problem with the help of C programming. So first time including a header file scdr.h. Now I am declaring a function name of function is print its written type is void and it will receive an argument of type character array. So this is function declaration. Now I am defining main function inside main function. I am declaring a character array. Then with the help of printf, I am going to display the message enter string on console. Entered characters will be received inside str through the function gattus. Now I am calling print function where I am passing str string. This statement is function calling and then returns you. So this is the definition of main function which is reading a string from user through gattus and that string str is passed inside print function for calculation purpose. Now I am defining definition of print function. This block will be known as function definition. Inside this function, I am going to implement a loop which is initialized with 0. Its condition is str of i not equals to null and then i plus plus. So this loop will repeat till this condition is true. If this condition is false that is str of i not equals to null then loop will be terminated. Now if I want to print ask a value of each character, then I have to use this printf statement. So here I am printing both the character and its ask a value. So for printing character, I am using percent c and for printing ask a value, I am using percent d. So see this printf carefully. Here str of i is printed twice. So first str of i will be printing character because of percent c and second str of i will be printing ask a value because of percent d. So this is the complete implementation of the program. Now I am executing this code. I am entering Sanjay as input. You can see the output. Here ask a value of each character is displayed along with the character. So ask a value of s is 83 a 97 and 110 j 106 a 97 and y 121. So this way I am able to print ask a value of each character by passing string into function. I hope you have understood how we can solve this problem by printing ask a values passing by passing string into function. If you want to watch more programming related videos, you can follow or subscribe my YouTube channel through the URL youtube.com slash Sanjay Bhukta underscore tech school. You can download my programming app Techimus which is available on Google Play. Thank you for watching this video.