C Programming Tutorial 26 - ASCII and Int Conversion

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

\t is horizontal tab which is equal to 9 not 11, that's why result equals to "J(74)", not "J(76)".

marcin
Автор

For anyone who's confused like me just change the value from 11 to 9 and instead of \\t and \t use \v and \\v
\v stands for vertical tab aka "VT" and was often used way back when typewriters were the norm. Nowadays it's still used but it depends on the field.
You could do your own research if you want.

thygreek
Автор

: ) I absolutely did learn something Caleb Curry. Using ASCII in Math, printing them out as Characters or Integers, and inserting another Backslash to "\t" in order to have it avoid being rendered as a Tab Character. I'm sure that all of this will be very useful for me in the Future. Thank You!

NO--U-NO
Автор

This is absolutely amazing. It helped me out a lot for an exercise in my degree programme!

torsam
Автор

One application of char to i conversions might be to create a basic checksum app, though at the moment, that's above my pay-grade :D

johnc
Автор

I like your tutorial. It is clear and concise, also professional quality!!!

danieldixon
Автор

Conversion? More like concise! Thanks again for another wonderful explanation.

PunmasterSTP
Автор

tried setting up variables for the mathz variable with a char a char b printf scanf printf scanf and it skips the second scanf.

resolvconf
Автор

Everything I learned from you is useful

fahtfakcarl
Автор

For the first example, How can i save the ASCII value in an integer variable not only displaying it. Can i use int sum = int (ASCII) for instance!

netmarketer
Автор

Hey can u please help me in a code .
Its about print the sum of digits in a string....
I'm going absolutely right on my way only the thing is that when we do ...sum =sum+ a[i] then it is adding the ASCII of a[i] in sum.. Please do help me

GauravKumar-nvex
Автор

in the last part from math with ASCII why did you put %d instead of %i? since you said you want to put the char followed by the integer value? new subscriber here :D

mayeeshamasud
Автор

Excellent video, thank you! I'm really enjoying programming. I really appreciate you putting up these videos. XD

theseigemeister
Автор

Why did we use %d instead of %i? in the last formula? Was this a mistake?

joaocorona
Автор

Same program as yours (only I did 'D'+'H'), but when compiling, I always get a warning saying "implicit conversion from 'int' to 'char' changes value from 140 to -116 [-Wconstant-conversion]". Any idea why and how I can fix it?

sarahm.x
Автор

It's getting more and more interesting!Looking forward to learn how to store output data in a file to access it later or make other program use stored data :) Now that would be something!Thanks, Caleb

andyoclover
Автор

omg at last normal video for my YT search, thanks!

daveevad
Автор

Hello Caleb, there is a little confusion in the sum, the horizontal tab value is 9.

carolinahernandezviveros
Автор

Hi, thank you for great videos.
I have couple of questions.

You did not explain what is %d
What is the reason to have %d inside of round brackets like %c(%d) ?

I would be glad if you answered.

alperenceliktas
Автор

Uhm can I ask how to convert a word to a number and vice versa? For example, input- "1" output- "one" / input- "one" output- "1"

hedii