/
tldr; you can't. it is up to the compiler to decide (maybe you could write asm code but meh)
you see it gets the pointer from the memory then replace it then get it again every time
▪️fateme👷🏻‍♀️
Are you learning linked list or working on something?
Learning I'll be glad if you help me
Kaptain
hello here am beginner . what's the best C++ application for a new user to start running and debugging codes offline
Anupam2.7
When to use single quote and when double in c++?
Pavel
When to use single quote and when double in c++?
Double quote for string constants, single quote for char constants
Anupam2.7
Double quote for string constants, single quote for char constants
How do you create that "double quote for string constants", by including string module in header file or by using any other method?
christian
christian
It this []
Not exactly, the square brackets are used to initialize arrays
DaviChan
how to reduce a size stub on c? Compiler Gcc on windows
-Os to optimize for size -nostdlib, -nodefaultlibs to not include the standard library
DaviChan
any IDE suggestions so i dont have to install packages manually in C++
Not an ide but sounds like you would want to learn cmake
Anonymous
Bro it was just for reason
Anonymous
You can just help a newbie
Anonymous
Maybe you even got the answere
ngdream
is it the good method to do like this ??
ngdream
you can have a look here :https://github.com/ngdream/bridje
ngdream
and please which is the best library to work with json file??
HaiNahi
Bro it was just for reason
If a school student bought something from his home and the teacher insulted him, he would just go crying to his father who sensed injustice and next day he comes back with the thing again wiping his tears, now with permission.
HaiNahi
What bro?
Bro, attacking against injustice
Anonymous
Bro, attacking against injustice
Bro I don't know what you mean
Anonymous
Wait I am going to use deepl
Mahmoud
Hi who can help me pls
Thomas
#include<iostream> #include<cmath> using namespace std; int main(){ int n; cin>>n; bool flag=1; for(int i=2;i<sqrt(n);i++){ if(n%i==0){ cout<<"Non-prime"<<endl; flag=1; break; } } if(flag==0){ cout<<"Prime"<<endl; } return 0; }
Thomas
the output of this code gives 4 as a prime number how can i rectify this correctly in the code
ֆ33ʏ377
Not an ide but sounds like you would want to learn cmake
not sure but i want to master C++, since i am in data science field i am sure its going to be very usefull in future
ֆ33ʏ377
but C++ have lots of libraries
ֆ33ʏ377
models are already built in C++ so i think in C++ its possible to run data processing and model building and other data related tasks
HaiNahi
python in machine learning courses seem to use GPU
HaiNahi
hard to find a way using gpu in c/c++
ֆ33ʏ377
and C++ is used by tesla for there autopilot feature in car
Engineer
https://docs.google.com/presentation/d/1HwLNSyHxy203eptO9cbTmr7CH23sBGtTrfOmJf9n0ug/edit?usp=sharing&resourcekey=0-GH5F3wdP7D4dmxvLdBaMvw
Engineer
For C++ template analysis what do people here use?
hello
#paste
hello
https://pastebin.com/PMB6un9h
hello
i have a problem in my code i need to input a character twice for it to work properly each time
hello
if i dont input it twice it gives me the output for the input before
Ольга
https://onlinegdb.com/72QtC9vPu Hi, I'm trying to figure out the topic of stacks based on singly linked lists, but I'm not very successful. Can someone please explain to me why this code turns 1 when it should turn 8. Any explanation of what I'm doing wrong would be appreciated
Sujit kumar
Hello everyone.
Sujit kumar
I am using vs for c but i found .\Hello.c:1:19: fatal error: stdio.h: No such file or directory # include<stdio.h> this error. Can anyone help me to fix this?/
Gani
Hi
pavel
Share your code via god bolt
Anupam2.7
Which way of declaring a string is more preferable. Using string library or char var[n]???
ʙoᴍо͠ʏ
how to make numbers sideways like that in c++
Talula
Which way of declaring a string is more preferable. Using string library or char var[n]???
If you want to store static string then char but if you want to manipulate the string then string library.
Ayan
Guys I have faced a problem
Ayan
why I can't share code past link ?
Ayan
which pastbin site is allowed ?
Puspam
If you have deleted your account, how will I message you?
Puspam
Ooh. I got fooled by that 🤦
Deleted account
christian
How do I find the size of char *str?
Pavel
How do I find the size of char *str?
If you want a size of c-string, you can use strlen C https://en.cppreference.com/w/c/string/byte/strlen C++ https://en.cppreference.com/w/cpp/string/byte/strlen
christian
If you want a size of c-string, you can use strlen C https://en.cppreference.com/w/c/string/byte/strlen C++ https://en.cppreference.com/w/cpp/string/byte/strlen
I'm actually not supposed to use strlen, but I have an idea. I think I'm supposed to loop through the string until I find the \0 character. Thanks anyway
Puspam
It is said "he cannot walk more than 2 hours a day". So, 1 day = 24 hours.
Anonymous
Sorry. I wanted to ask a question on a c program to crack a crackme file.
Anonymous
I need to send the link to the repository
Anonymous
Create a file that contains the password for the crackme2 executable. Your file should contain the exact password, no new line, no extra space ltrace, ldd, gdb and objdump can help You may need to install the openssl library to run the crakme2 program: sudo apt install libssl-dev
Kaptain
switch(operator) { error expected type-specifier before ' ;' token
Руслан
Who use assembler in C?
Руслан
I need one small problem
klimi
Who use assembler in C?
I do... But only when I have to
DaviChan
Who use assembler in C?
I do also. I like it sometimes. (Only used x64 recently)
DaviChan
switch(operator) { error expected type-specifier before ' ;' token
German? Anyways, that looks like you are missing a semicolon the line prior