\Device\NUL
does using or not using malloc have any effect?
You mean the address returned by the function?
Tronald
You mean the address returned by the function?
the function is not returning an address, it is modifying Qyu. so Im asking if using malloc or not using malloc affects if changes to Qyu persist
Tronald
Nope
nope as in malloc has no effect right? Qyu will remain modified regardless
/warns
Rose
/warns
User </return> has no warnings!
🏳️‍🌈GNU/Линуксяша-libre🏳️‍🌈
UB in constexpr in clang and gcc: https://godbolt.org/z/sbGx91esj
🏳️‍🌈GNU/Линуксяша-libre🏳️‍🌈
wym UB?
Not transparently replaceable. https://eel.is/c++draft/basic.life#8.3
🏳️‍🌈GNU/Линуксяша-libre🏳️‍🌈
wym UB?
Issue for it: https://github.com/llvm/llvm-project/issues/105957
Ananth
But unable to import module on main.cpp Not such module found like error
using modules is a 2 step process. first, you need to compile the modules... in the second, you can use the pre-compiled modules. for eg: clang++ -std=c++20 -c math.cppm --precompile -o math.pcm clang++ -std=c++20 client.cpp -fprebuilt-module-path=. math.pcm -o client
Mansurbek
Hello everyone, could anyone help me with this code, it always says Error parsing Json data. I don't know what is wrong exactly.?
Chat Boss
ㅤMansurbek sent a code, it has been re-uploaded as a file
вадим
Hey, any body here started using c++20 modules ? On Linux with either gcc or clang I followed a lot of blogs on the same but unable to make it work
I have had this same problem with C++23 and C++20 by using gcc-12, and clang under Debian 12. No solution, I gave up and keep learning C++17.
Susmita
Basics of c programming channel
R_morarce
Hello, could you help me create a UML for a cinema ticket sales system?
R_morarce
Thank you.
Rose
Hello, could you help me create a UML for a cinema ticket sales system?
Offtopic discussions should be done in the C/C++ Offtopic group. Please take your discussion/questions there.
harmony5 🇺🇳 ⌤
Also looks like homework
Chat Boss
Also looks like homework
Read the pinned message regarding homework. https://t.me/programminginc/453966
harmony5 🇺🇳 ⌤
Rose
Basics of c programming channel
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Yash
hello whoever sees the text and has answer kindly give it Will Cs still be helpful for upcoming years ? will the degree holders and stream learners have slight mid chance of getting jobs intern or startups ? im not obsessed with the CS era you know what i mean neither with money but for at least living a casual normal life you need it obviously? so i have a slight interest in it but due to this ongoing fuzz im scared of taking cs as my major after 4 years I'll be begging lol I know i can ramp up skills but not like the seniors too they have less chance of failing than me Will Electronic Field have a massive turn? Telecom Industry?? The 6G the Era of Infrastructure? I assume we have set the resources for the infrastructure era (big big time long*) and we will always jump high but the quality core majors and telecom / electronic will get a scope? Thank you reading till now and yea Sorry too
Sai Anugraha . P
Is there any app for c programming to do study and coding?
Sai Anugraha . P
Offline only I want
Tanmay
/start@MissRose_bot
Rose
/start@MissRose_bot
Heya :) PM me if you have any questions on how to use me!
harmony5 🇺🇳 ⌤
Is there any app for c programming to do study and coding?
A pdf, a text editor, a cli with gcc or clang. If you're on android you can use termux
“👨🏻‍💻” Ahmed;
02
Nagoor
C programming language PDF
Nagoor
C language PDF
Yash
C language PDF
Check resources
Nze
C language PDF
Check out Beej's Guide to C language. That's what I'm using and it's been great so far.
Nagoor
I am fresher I tells how to start first
klimi
I am fresher I tells how to start first
If you have resources for freshers how to start C depending on the quality i can add it to the resources channel.
Nagoor
How to add resources channel
klimi
How to add resources channel
You mean this resources channel https://t.me/cpp20programming ?
Akash
What is syntax error?
Akash
What is an synatx error in c
harmony5 🇺🇳 ⌤
Google
Rose
Welcome Sai Anwesh Amrutam! Please read the pinned message 🙂 Click the button below to unmute yourself.
Rose
Welcome Deamon! Please read the pinned message 🙂 Click the button below to unmute yourself.
Ahmed
I am a freshman in coding and I want to start from C language can someone tell me how to start as I have exactly no clue what coding in c language is or how to even start
Yash
I am a freshman in coding and I want to start from C language can someone tell me how to start as I have exactly no clue what coding in c language is or how to even start
Check resources for whatever you could find there imo check roadmap. smth site that have all stuff which you need to master or practice for getting good in c
Yash
There again a good thing to do is watch Codecamp C video of basics if you are too new that will help you a lot and get started
Yash
After getting some knowledge from video and books and watching 1-2 example coded you can try your own basic things to code
Yash
i hope you understood AllthebEst
Tronald
o my college server is running 2017 version of gcc and my fedora installation is of course running the latest version of gcc problem is the code compiled and run by latest gcc may not work with 2017 version of gcc. so is there a way I run test code on my machine if it works with 2017 version of gcc
harmony5 🇺🇳 ⌤
Have you tried running it?did you get any errors?
Tronald
Have you tried running it?did you get any errors?
yes i have tried and Im getting errors
CupCake
Bro is Fedora good, like I am also using it from last few weeks and encountered no issue but is there any trouble in using red hat distros
harmony5 🇺🇳 ⌤
Tronald
Share the errors, then
Im gonna have to share a screenshot.. wait
Tronald
I cant share links either
Tronald
https://imgur dot com/a/izCDR4u https://pastebin dot com/SynXTS6B The code
Never Spam Bot
Abruh is now approved by the group admin and can send messages without any restrictions This happens when I dont put curly braces in each case of switch case and declare a variable Case 1: //body The code works on 2017 version of gcc if I do Case 1: { //body } See spam? Quote the spam message in the group and reply with /spam
Rose
Welcome Sandhya! Please read the pinned message 🙂 Click the button below to unmute yourself.
harmony5 🇺🇳 ⌤
https://imgur dot com/a/izCDR4u https://pastebin dot com/SynXTS6B The code
The error is clear, check here for a solution: https://stackoverflow.com/a/19830820
Tronald
The error is clear, check here for a solution: https://stackoverflow.com/a/19830820
The problem isnt the error The problem is with newer version of gcc, the program runs fine The same exact With older version of gcc it gives an error That is what bothers me, I've solved the error itself
FriedRice
If you put brackets after the case, you can declare variables inside them.
Tronald
If you put brackets after the case, you can declare variables inside them.
true, but problem is inconsistency across two machines, one my machine with latest gcc I dont need to put brackets on a server with 2017 version of gcc, I MUST put brackets or it will give a compilation error
Tronald
Isn't the main difference enforced language spec version ?
yeah, that should be the case, but Im really puzzled as to why 2017 and 2024 versions of gcc are behaving differently. no standards were changed in this time
FriedRice
If you just use gcc without specifying a iso version, you enabled the gcc extension, which relaxes a lot of rules.
FriedRice
Try gcc -std=c89 it enforce c89 standard.
FriedRice
The problem is that gcc extension grammar is based on gcc versions, and is not consistent between newer and older versions, so you should always tell gcc which ISO version you want.