Thespartann
Best way to learn c?
Patience and wish to learn :)
Anonymous
Means projects in it
swarnim
Patience and wish to learn :)
I was done with C in like 4 hours... I admit I knew programming already but C is probably the easiest programming language to learn.
Dima
Whoever will ask something like “best way to learn C” I’ll ban TWICE AAAAAARGH
swarnim
Pretty sure that's not how it works most of the times lol
Well yes if you don't try to learn all the tiny little tricks about an hour is enough
swarnim
Nope but what's there to learn I know how pointers work. I know how arrays work, I know the abstractions and basic assembly just gdb it to figure out the working. Better use godbolts site with clang to read proper assembly code. And just what's more.
swarnim
It's syntax is not even more than 20 pages of content if you know another language
swarnim
Data Structures
What about data structures...?
Anonymous
What about data structures...?
Linked lists, Stacks, Queues, Trees, Graphs, Sorting, Hash functions
Francisco
Data Structures
A struct in C is just some data gathered together
swarnim
Linked lists, Stacks, Queues, Trees, Graphs, Sorting, Hash functions
And I knew most of it already knowing basic programming before hand.
Anonymous
How to randomly call 2 functions Somebody help me
Mihail
Like in random intervals?
Mihail
Or choosing between a list of functions
Anonymous
I'm trying to make Chating program its has two server() functions I need to call 2nd calls after server1 s duty and call server 1 again
MᏫᎻᎯᎷᎷᎬᎠ
C rules are simple But I don't think it's an easy Language
MᏫᎻᎯᎷᎷᎬᎠ
I hate to look at any file that has a extension .c
Dima
I am laughing much when person says “I know C!” and I ask them about bit packing and restrict pointers or kinda similar stuff
Dima
and they be like "eeeh"
MᏫᎻᎯᎷᎷᎬᎠ
How can someone understand a C code
Dima
my fetish
MᏫᎻᎯᎷᎷᎬᎠ
Damn
Anonymous
This is my output The function calls user 1 again I want to get user 2 after user 1
Francisco
This is my output The function calls user 1 again I want to get user 2 after user 1
Output doesn't tell me anything, show me some code snippet
Anonymous
Anonymous
Can you say how to call 2 functions agian and agian
swarnim
I am laughing much when person says “I know C!” and I ask them about bit packing and restrict pointers or kinda similar stuff
Depends on the definition of C language that they have, understanding memory and tools usually isn't a part of learning a language for most people.
Anonymous
BinaryByter
without that knowledge
Francisco
BinaryByter
while (true){ f1(...); f2(...); }
hes talking about recursion, probably
BinaryByter
Meaning?
read again
swarnim
How about you use a std::vector like facility in c?
Well people can still use it but debugging will be a pain.
Francisco
Francisco
He doesn't give any code to check, I just can guess
Anonymous
"probably"
I want to call two functions
Anonymous
Pls send c programming materials
Francisco
I want to call two functions
That's pretty abstract concept
swarnim
Pls send c programming materials
Go check the Google or buy a book
Anonymous
From basics
swarnim
That's pretty abstract concept
Abstract I did like to call it undefined.
swarnim
It can threaded calls
swarnim
It can asynchronous calls
swarnim
It can be through recursion
swarnim
.... A lot of possiblities
Francisco
I want to call two functions
Give us some code to check or we won't be able to help you
Francisco
If you don't want to give full code for some weird reason, give us the block you're having problems with
Francisco
Without explicit code, we can only guess
BinaryByter
i wanted you to tell me how a C guy would use a dynamic size array without pointer knowledge
BinaryByter
let alone indiand
swarnim
let alone indiand
You got a prob with Indians
swarnim
Or was it Endianess
Francisco
I'm typing the block give me some time
If it's too long, don't expecto me to try to understand it. As it's said in Stack Overflow: "Minimal example that reproduce your problem"
BinaryByter
You got a prob with Indians
@anunaym14 tell him
Anonymous
String message= "Hi"; Void user1() { Cout<<message; } Void user2() { cout<<message; } Int main() { User1(); User2();} It's prints function user1 and user2 . I want to run user1 again after user 2 () function
BinaryByter
Well... do it
Anonymous
I want good library to make a telegram bot by C++
Anonymous
libtgbot
is it for Cli bot's??