C PROGRAM TO PRINT THE ASCII VALUE OF A CHARACTER

Опубликовано: 12 Октябрь 2024
на канале: PRINCE OF PROGRAMMING
47
like

#C #CTUTORIAL #ASCII #CHARACTER #CLANGUAGE #CPROGRAM #CPROGRAMMING #Programming_Language #youtubechannel #youtube #youtuber #youtubers #subscribe #CPROGRAMTOPRINTASCII #CPROGRAM_TO_PRINT_THE_ASCII_VALUE_OF_A_CHARACTER #youtubevideos #sub #youtubevideo #like #instagram #programming #coding #programmer #python #developer #technology #code #coder #computerscience #tech #software #codinglife #linux #softwaredeveloper #programmingmemes #programmers #programminglife #hacking #machinelearning #php #computer #softwareengineer #bhfyp

Welcome to my channel Prince of Programming👨‍🎓

   / @princeofprogramming  

This tutorial will give you a full introduction into the
C PROGRAM TO PRINT THE ASCII VALUE OF A CHARACTER

   • C PROGRAM TO PRINT THE ASCII VALUE OF...  

   • C PROGRAM TO PRINT THE ASCII VALUE OF...  

Give this video a thumps up👍

Share & subscribe for more videos😏

Show your support to recover the channel❤

Click the bell icon to get notified for new videos🔔

Feel free to drop your doubts in the comment section📗

TOPIC - C PROGRAM TO PRINT THE ASCII VALUE OF A CHARACTER
   • C PROGRAM TO PRINT THE ASCII VALUE OF...  

*) C language supports all the alphabets from the English language.

*) Lower and upper case letters together support 52 alphabets.
lower case letters - a to z [ASCII Value from 97 to 122]
UPPER CASE LETTERS - A to Z [ASCII Value from 65 to 90]

*) In C programming, a character variable holds ASCII value rather than that character itself.

*) If you assign 'A' to a character variable, 65 is stored in the variable rather than 'A' itself.

*) In this program, the user is asked to enter a character using printf( ) function.

*)The character is stored in a variable c using scanf( ) function.

*) Finally, the printf( ) function is used to display the ASCII value of the character to the screen.
Syntax: printf("control string”, variable list);

*) When %d format specifier is used, 71 (the ASCII value of G) is displayed.
*) When %c format specifier is used, 'G' (the character itself ) is displayed.