Rahul
I can't understand this
Rahul
Please explain
01000001011011010100000101101110
Please explain
https://stackoverflow.com/a/7152835
Artöm
Man nobody will watch it
01000001011011010100000101101110
Little
Suggest me a free compiler for c programming
Little
Thanks man
Little
Where can i download it
Unknown
Where can i download it
where do you want to install it? windows or linux?
Little
Windows
Unknown
https://sourceforge.net/projects/tdm-gcc/
Little
👍
Parra
https://sourceforge.net/projects/tdm-gcc/
what's TDM? is it a new branding for mingw?
Ashish Bhushan
I can't understand this
Dude the range for unsigned int is from 0 to 65,535 or 0 to 4,294,967,295
Ashish Bhushan
It cannot store negative value...and you hvae stored a=-12
Ashish Bhushan
That's why this error is happening
Unknown
what's TDM? is it a new branding for mingw?
TDM-GCC is a GCC distribution on Windows. Here TDM stands for Twilight Dragon Media, the project's name.
Parra
yes
👍
Little
When i write program in code block it says you havnt any detected compiler
Little
How could i fix this
Unknown
When i write program in code block it says you havnt any detected compiler
you need to select a compiler in code blocks settings
Little
K Let me try it
Unknown
K Let me try it
you can google how to configure codeblocks with C compiler
Rahul
What is the output of this program
Rahul
And please explain
Unknown
And please explain
I think its 74 did you run this program?
Rahul
But I don't know how it works
MilkBeforeCereal
Output is 21 dude
Try it line by line step by step
Little
Little
How could i fix it
Anonymous
String &String::append(size_type count, CharT ch) { if (count == 1) { push_back(ch); } else { chk_n_realloc(count); std::allocator_traits<Allocator>::destroy(allocator, first_free); first_free = std::uninitialized_fill_n(first_free, count, ch); std::allocator_traits<Allocator>::construct(allocator, first_free, '\0'); } return *this; } is the uninitialized_fill_n() wrong for an AllocatorAwareContainer?
Anonymous
github .com/chandradeepdey/C-_Primer_5th/blob/master/13/13.49/String/String.h github .com/chandradeepdey/C-_Primer_5th/blob/master/13/13.49/String/String.cpp code review?
Little
When i try to open up a new project it shows the commend i captured.
Little
tell me how to fix it
Anonymous
what's TDM? is it a new branding for mingw?
it's actually 10-15 years old. it is mingw. what i did not know is that they kept the project up to date.
Anonymous
How could i fix it
Do not use CodeBlocks and Mingw
Anonymous
Why are you writing your own string?
the exercise to write a string class with some basic features was in the C++ Primer book. but i am trying to write it by following as much of the standard as i can because i thought it was a good exercise to write the STL
Anonymous
noob to functions and c.tried to do a swapping function, but i dont know why 2nd answers getting with bunch of numbers. any solution?
klimi
You are not storing any value into swp
klimi
So it grabs some random value from ram
Anonymous
So it grabs some random value from ram
thanks mate, what should i do to fix it. sorry heavy noob here
klimi
I dont know what the answer should be
klimi
Its up to you what you want to make
Avezy
you have some options swap could be a print_swapped function that only prints the given numbers swapped or it could take the given integers by reference and really swap their value either way you dont need a return value like swp
Anonymous
what will the output? int x; x = sizeof(44.55); printf("%d", x);
Anonymous
according to me it should be 4 beacuse of int but the output is 8
Anonymous
number
lol, but can you tell me
klimi
its sizeof(float)... imo
Anonymous
Anonymous
floating number literals type is double by default
Anonymous
so it is sizeof(double)
Anonymous
okay
klimi
i thought floats are default
Anonymous
what will the output? int x; x = sizeof('a'); printf("%d", x); the output is 4 but it should be 1
Anonymous
why?
klimi
why do you think so
Anonymous
why should it be 4?
i am saying it should be 1
klimi
oh then ... you are right
Anonymous
beacause of char size is 1
Anonymous
but the output is 4
klimi
hm
Anonymous
why
Dev
Why we don't we write while defining linked-list struct node { Int data; node *next; } Instead of.. struct node { Int data; struct node *next; }
klimi
maybe it converts the char into an int... and they it thinks its int
klimi
try this char a = 'a'; sizeof(a)
Sasuke
What you guys do when after long time without coding you forgots some of the concepts and syntaxes?