Jaaziel
Anonymous
As IDE I only liked Netbeans so far
Ansya
Like as jetbrains
Anonymous
C-Lion? He is good for personal use?
Anonymous
I think it's not a good idea, pay to a IDE, only for personal use!
Anonymous
It better
Sasuke
Why I can't do this; int *intPtr = &5; Where I can do this const char *stringPtr = "Hi, There";
Chernykh
U can't get the ptr from rvalue
Sasuke
Isn't both are literals?
I_Interface
Isn't both are literals?
Read about rvalue, references and pointers.
Anonymous
You be putting the 5 address in intPtr pointer? Wtf
Anonymous
Sasuke
You be putting the 5 address in intPtr pointer? Wtf
Why 5 doesn't have a memory location?
I_Interface
Why 5 doesn't have a memory location?
Because it isn't a variable ?
Anonymous
Why 5 doesn't have a memory location?
It is a value, not a variable
Sasuke
Because it isn't a variable ?
So does "Hi, there"
Anonymous
The 5 address it is protected by the protected mode.
I_Interface
So does "Hi, there"
It is the const char array.
Anonymous
IA-32
I_Interface
Anonymous
Ye
Anonymous
You not can access
I_Interface
Anonymous
Thx
Sasuke
It is the const char array.
I can make a array of that those characters bcz I have location of them right?
I_Interface
Sasuke
u have a pointer to array and can read it easy.
I can create a const array(which is basically a pointer to first element) with string literal but can't get the address of integer literal why?
Anonymous
I think it's works: int *intptr = 0x637c52; But this could be a Segmentation Fault, or General Protect Fault, I don't try it! If you can't access this address directly.
Sasuke
use this: int *p = (int[]){ 5 };
I don't want a fix I wanna know why this certain behaviour
Anonymous
I don't want a fix I wanna know why this certain behaviour
integer constant have no address. enum { X = 5 }; int *p = &X; that's because of compiler optimization. that constant might be a feature of a machine instruction. for example: a = 5 * b; might be translated to: lea eax, [4 * ecx + ecx]
Sasuke
Sure
Why? Integral literals don't have!
Anonymous
And string literals have addresses?
string literal are equivalent to arrays. these two are equivalent: "Hello World!" (char []){ "Hello World!" }
Anonymous
Why? Integral literals don't have!
Because string literal is array of chars that you need store somewhere Integer literal you can store directly in instruction it is used by
Sasuke
Then character literals don't have address too then
Anonymous
Yes
Sasuke
Thankyou guys
Anonymous
Anonymous
Why
klimi
/cleanwelcome on
Anonymous
hey there
Dima
lol
Anonymous
👋
cadalt ⚡ 𓄂𓍊𓋼
Anonymous
HELLO
Dima
lol
Anonymous
?
Wisenky
hi coders
cadalt ⚡ 𓄂𓍊𓋼
@Neko_cpp lol
cadalt ⚡ 𓄂𓍊𓋼
🔰
Anonymous
??
Wisenky
I have a little bit logical issue , anyone would find it ?
Anonymous
hi wisenky
Dima
lmao
Anonymous
I'm just a noob
Anonymous
but still I'll try
cadalt ⚡ 𓄂𓍊𓋼
Great @saif
Wisenky
ok I will send file because code is so large to sent with typing
Wisenky
Anonymous
Great @saif
😅😅
Wisenky
it jumps first indexes and last indexes are empty valued
Anonymous
I'm still a learner
Anonymous
and don't know that much. . .
Anonymous
😅😅😅
Anonymous
But maybe you have an error in line 24
Anonymous
Which ide is better for c and c++
Dima
CLion
Dima
QtCreator
Anonymous
VScode?