Sid Sun
i can see ^A with less, with cat it gives nothing
Liam
i can see ^A with less, with cat it gives nothing
fputc(a, outputFile) writes char with ASCII code 1, which is ^A.
Liam
If you want to write 1 to outputFile, replace int a = 1 to char a = '1' or int a = '1' (not recommend).
Sid Sun
this is just a part of a different program where operations are done to the int, so it'd be preferable
Liam
something like fprintf(outputFile, "%d\n", a)
Mat
A char is an unsigned integer in the end
Mat
Just with a different size
Sid Sun
something like fprintf(outputFile, "%d\n", a)
thanks a lot, it was eating me alive, i didn't think of that simple yet beautiful solution :)
Sid Sun
glad to know.
if you could give me your github email, i would appreciate it
Sid Sun
for authorship
Liam
if you could give me your github email, i would appreciate it
Well, that's not worth such an formal appreciation, and your kindness is well recieved and accepted.
Liam
A char is an unsigned integer in the end
everything is (could be represented to) unsigned integer(s)... double d = 3.14; for (size_t i = 0; i != sizeof(double); ++i) { printf("%u", *((u_int8_t*)(&d) + i)); } printf("\n");
klimi
Welcome
Anonymous
Hi
klimi
Hi
aa
Hell friends any one knows how to install Android studio?
aa
I need help
Ariana
Just send your problem...
Ariana
Here
aa
Ok
aa
Actually I am downloaded Android studio form Android website and also installed but they say that you make a proxy when I cancel on the proxy after that they say SDK files are not found. So I downloaded SDK files also and pest it on Android studio folder but again same massage is displayed
aa
This type of massage
aa
When I click on set proxy
aa
When I cancel it
Dima
this is unrelated
aa
aa
this is unrelated
Sorry but if any one knows please help me
Anonymous
Ok, i read.
klimi
WElcome
klimi
welcome
amninder
Why answer is one and what's the use of "~" operator Can anyone please
klimi
answer is one?
klimi
because you add one to it
klimi
"bitwise complement"
amninder
answer is one?
Yup Answer is one
amninder
klimi
~ what it does?
https://stackoverflow.com/questions/791328/how-does-the-bitwise-complement-operator-tilde-work
amninder
Thanks👍
amninder
So The complement operator (~) JUST FLIPS BITS. It is up to the machine to interpret these bits
Anonymous
Hi
Anonymous
Sorry but if any one knows please help me
Does the problem solved ?or required more help ?
BinaryByter
for example printf ()
BinaryByter
with the %<> flags, you tell it how to interpret the variable
BinaryByter
if you give it an int and tell it to interpret it as a char, it will
Mike E 🏴‍☠️🇪🇺
Thank you & will do
Anonymous
Hey everyone
Anonymous
Why there is a space before %c ?
Ariana
Try out with some input
Anonymous
Yes it didnt work correctly without a space
Anonymous
Hellow I'm asking for basic books on programming any help please... in PDF format
Sumit
Hi
Sumit
Actually I am new to programming languages..
Sumit
I don't know from where I have to start so please if anyone can help me out...
Sumit
For c
Pavel
Hello
klimi
Hi
Anonymous
hi
klimi
hello
Thierry TENE
Hi!! Please may i have a ebook about microcontroller? Please i want to know how to program it.
Thierry TENE
No
😞😞
Anonymous
i need love
klimi
i need love
We all do
Anonymous
I am looking for love but not the love you are looking for. The love I look for lasts. forever
Erdem Efe Erol
Who needs love when we have C++
Anonymous
Who needs love when we have C++
ya i need book for c++
klimi
ya i need book for c++
That's easy
Anonymous
I want to learn the c ++ language, but I want the basics
Sumit
Hello World
Hello...
Liam
But why ?
you could treat " %c" as a pattern. scanf will scan the stdin stream (by default) and try to find this pattern. If the pattern maches the head of the stream, scanf will store the content of stream, which maches %c, to arr[i].
Ilyas
Hello
Talula
Why there is a space before %c ?
There is space to tell scanf to print space before taking next char input, otherwise all your chars will be stacked on other.
Tawanda
hie pis