MᏫᎻᎯᎷᎷᎬᎠ
In programming c without main function program execution is it possible
No There is a hidden procedure called _start that will call main() _start is where the real execution of the program starts If it cannot find main(), it's an error
MᏫᎻᎯᎷᎷᎬᎠ
In programming c without main function program execution is it possible
A program without main() is called a library It's something you will see a lot when you advance in the language A library is a code that other codes uses it
MᏫᎻᎯᎷᎷᎬᎠ
On MCUs even this is in your hand (startup code) so yes it is 😁 but don sin like that please
Well I'm not that familiar with Embedded system But in general it's a good to keep it simple for beginners
Ziky
A program without main() is called a library It's something you will see a lot when you advance in the language A library is a code that other codes uses it
https://stackoverflow.com/a/29694958 hoho it is worth of trying even on desktop. Wondering if opening of stdout and writing stack alocated strimg requites any initialization
Ziky
asm?
I guess there is no need for asm. You can handle it from C.
MᏫᎻᎯᎷᎷᎬᎠ
asm?
I think it's coming from C runtime
Ziky
Look at the link i posted
MᏫᎻᎯᎷᎷᎬᎠ
Which will ve loaded first before the program execute
MᏫᎻᎯᎷᎷᎬᎠ
exo
I think it's coming from C runtime
global _start Section .data Section .text _start: _exit: mov eax, 0x01 mov ebx, 0x00 int 0x80
Rose
User Aditya has 1/2 warnings; be careful! Reason: ad
Henry
Any good developer here??
Rose
Any good developer here??
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Wisdom
Hi
Wisdom
Ples what are the basic codes for c++
Wisdom
Wating for response ples
𝐋 𝐔 𝐂 𝐈 𝐅 𝐄 𝐑
I am a beginner and a first year student. Just started c language please provide me some tips...
Rose
That's 2/2 warnings; summer is banned! Reasons: 1: nohello.com 2: random good afternoon
klimi
Wating for response ples
What have you found so far?
Ludovic 'Archivist'
Ples what are the basic codes for c++
http://www.catb.org/esr/faqs/smart-questions.html
𝐋 𝐔 𝐂 𝐈 𝐅 𝐄 𝐑
The resources section of this group didn't help?
I can't find the resources section 😞
Ludovic 'Archivist'
I can't find the resources section 😞
Should we ban you for not reading the rules then?
Ludovic 'Archivist'
Because if you can't find the resource section, it can only mean you did not read the rules
𝐋 𝐔 𝐂 𝐈 𝐅 𝐄 𝐑
Should we ban you for not reading the rules then?
Sorry for the inconveniences from my side
Ziky
#admin ban @jhorar_00 sending spam in to dm
klimi
#admin ban @jhorar_00 sending spam in to dm
send me screenshot into dm/offtopic
Chat Boss
ㅤ$$$ sent a code, it has been re-uploaded as a file
MᏫᎻᎯᎷᎷᎬᎠ
Abbasi
The question about why only integral?
I think it's a language rule iirc.
Rose
Another one bites the dust...! Banned Manish. Reason: pm ad
Lalita
Anyone who wanst to work?
Rose
Anyone who wanst to work?
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Roshan
From
What
Ludovic 'Archivist'
ㅤ$$$ sent a code, it has been re-uploaded as a file
Not gonna lie, the use of pointers where they are completely pointless is disgusting me too much. Look into shared pointer, it will make your code more correct which will be much better
GPU Governor
Hi everyone, what career path in c++ is more in demand
Ludovic 'Archivist'
Hi everyone, what career path in c++ is more in demand
This is very vague, there are a great many career paths for a C++ dev, from fintech, gamedev, VFX, embedded, database engineering, operating systems, machine learning, library development for other languages, web, networking, and those are only the ones that I have actually done
Ludovic 'Archivist'
cool, what are your tech stack, like assembly, vulkan, ...?
Drogon for web or networked stuff, often with a variant of postgres, unreal engine, a bunch of low level libs I made for embedded, a lot of raw C++ actually, I tend to shy away from frameworks where possible
Ludovic 'Archivist'
But your experience in the industry, what's your take on rust, go, carbon
Rust is not ready, carbon is useless, go is good for projects with less than 10kLoC
GPU Governor
is it possible to create a C binding from c++ project
Ludovic 'Archivist'
GPU Governor
it is very easy most of the time
Oh i didn't even think it was possible
Ludovic 'Archivist'
Oh i didn't even think it was possible
https://git.nekoit.xyz/Archivist/mct20/src/branch/master This generates a C++ hashmap with binding to use with C types
Ludovic 'Archivist'
It was made in a couple of hours, and is not as well tested as it could, but it should work
GPU Governor
Ludovic 'Archivist'
And it is bugged, just clone the repo and open it locally, I am too lazy to fix the theme bug
Never Spam Bot
GPU Governor is now approved by the group admin and can send messages without any restrictions Last question, i am finding it hard to learn graphics programming (vk), will learning webgl or raylib first help See spam? Quote the spam message in the group and reply with /spam
Ludovic 'Archivist'
Just learn Raylib, it is easy and will get you 95% of the way to competence if you learn it all
Ludovic 'Archivist'
I use it to teach my students
GPU Governor
Most tutorials out there mostly (in fact only) teaches raylib 2d, the you have any resource to recommend for 3d
Ludovic 'Archivist'
try them, break them, experiment on them
Rose
User Sohel has 1/2 warnings; be careful! Reason: non english
Never Spam Bot
See spam? Quote the spam message in the group and reply with /spam
Bootstrapper
#include<stdio.h> int main() { int arr[]={1,2,8,4,5}; int temp[5]; for (int i = 0; i < 5; i++) { temp[i]=arr[i]; arr[i]=arr[i+1]; if (temp[i]>arr[i]) { printf("max is %d",temp[i]); } } return 0; }
Bootstrapper
please correct my code
r_postovalov
#include<stdio.h> int main() { int arr[]={1,2,8,4,5}; int temp[5]; for (int i = 0; i < 5; i++) { temp[i]=arr[i]; arr[i]=arr[i+1]; if (temp[i]>arr[i]) { printf("max is %d",temp[i]); } } return 0; }
#include <stdio.h> int main() { int arr[]={1,2,8,4,5}; int temp = arr[0]; for (int i = 1; i < 5; i++) { if (temp < arr[i]) { temp = arr[i]; } } printf("max is %d", temp); return 0; }
Roshan
Not gonna lie, the use of pointers where they are completely pointless is disgusting me too much. Look into shared pointer, it will make your code more correct which will be much better
Which one? If you're talking about the class layout, that's not by me. It's leetcode. Btw, I was using static and that was causing the problem as this function was being called multiple times by the online judge. And also, I'm new to graphs as I'm in first sem of college, so my code may seem messy... Sorry
Roshan
Just did pass by reference and now it's working completely fine
joseph
Introduction to c programming
exo
Introduction to c programming
where is the subject?
Rose
User $$$ has no warnings!
Ludovic 'Archivist'
The stop using leetcode, it is teaching you crap
It is effectively making you a worse programmer in all ways
exo
The stop using leetcode, it is teaching you crap
what do you think about neetcode dot io ?
Ludovic 'Archivist'
what do you think about neetcode dot io ?
I think that if a company asks me to implement RB-trees as a coding interview they can go fuck themselves and hire a junior that can't make a complete application instead
No name
I think that if a company asks me to implement RB-trees as a coding interview they can go fuck themselves and hire a junior that can't make a complete application instead
But those Questions are criteria for us newbies. Like if you don't know how to solve them then you won't even be able to sit for interview!