Why would anybody in the year 2022 want to program in C? You can't even make strings...

Why would anybody in the year 2022 want to program in C? You can't even make strings. All I wanted to do is make some text with a number variable in it and I had to do all this extra work with a sprintf function and create a new char array every time I want to update it. This shit is retarded.

Attached: E7jzEFNVEAAXagm.jpg (750x964, 96.32K)

>Filtered by a char array

i think python is more your speed nigga

Go back to python kid you need to be 18 to post here

I've been programming in C for more than 15 years and I still suffer from lack of string type. It's more pain once you use strings in other languages and come back to C.

Maybe it's time to hang the gloves up of you can't handle cstrings after 15 years

>char* c = "123 char";
>printf("%c\n", c);
It was that easy.

Embedded is the only legitimate use case I can think of. Only extreme masochists would attempt to use it for anything else these days, although it's probably still useful as a teaching tool for an introduction to programming.

>what is a library

>Give legitimate criticism
>reee!!! Go back to python!
Ngmi

Add a number to a string like
"File{number}.PNG", retard

int number = 6969;
char buffer[64];
snprintf(buffer,63,"File%04d.PNG",number);

retard

What part of
>>char* c = "123 char";
>>printf("%c\n", c);
>It was that easy.
Did you not understand? Do you see 123 there?

Because 123 is not an integer variable that I can change, dumbass. You are making it static. I have a list of files in a folder named 0-50. If I want to open image 35.png I would like to pass that number into a function and obtain the file name, not statically assign 50 variables to file names.

What part of
>I had to do all this extra work with a sprintf function and create a new char array every time I want to update it
in the OP post so you not understand? This is the same shit. That's extra work for something so basic.

cry about it nigger

Trolling is not permitted outside of Any Forums, so get the fuck out.

>Because 123 is not an integer variable that I can change, dumbass.
You never said this is what you wanted to do. All you said was
>All I wanted to do is make some text with a number variable in it and I had to do all this extra work with a sprintf function and create a new char array every time I want to update it. This shit is retarded.
I did this with char*

Can't do this in python, bitch
#include
#include
int main()
{
//the following code should be self-explanatory
int format = 684837;
uint64_t freqs[16] = {2748360259195248400, 2386657355164821287, 44316398793523};
uint64_t phases[16] = {2163158341802138629, 1303234725679080454, 32023916523782};
uint64_t composite[32] = {0};
int i = 0;
unsigned char frequency = i[(char*)(freqs)];
unsigned char phase = i[(char*)(phases)];
while (frequency > 0){
for (int j=phase;j

Attached: pointer.png (498x593, 68.03K)

Because embedded programming and robots are fun.

/thread

Attached: 709.jpg (480x262, 22.69K)

>number variable
>variable

Attached: ErdD8ghUUAQr8Lq.jpg (1200x670, 89.64K)

>.pyc

Attached: depositphotos_10201402-stock-photo-checkmate.jpg (768x1024, 77.55K)