olli
Tysm to much but which lang I start first
It doesn't really matter... If you need to re-take the C exam, then I would suggest C. Otherwise C# or Java might be a good start
Anonymous
Okay 👍
Amit
Hi
Shubham
hi
Ritu Raj
Is there anyother website other than Hackerrank where I can practice Coding Online?
Ritu Raj
(*ptr)[n]
Ritu Raj
(*ptr)[n]
What does this mean?
klimi
i love u
BinaryByter
thanks
Dima
What does this mean?
accessing item at given index
klimi
thanks
❤️
Anonymous
klimi
i thought you have 2
Anonymous
project euler is actually a really good site
Anonymous
i thought you have 2
that maxi guy removed his previous one
klimi
oh
Anonymous
even though i do not understand how exactly admitting to be a troll is against the rules here
Ariana
Is there anyother website other than Hackerrank where I can practice Coding Online?
wait hackerrank is to practice coding tf ive been lied bye earth
Anonymous
project euler is better for code because it makes you learn math and with a strong foundation in math you can make all the computer science simply
Anonymous
Hi
Ritu Raj
I am not able to print this!!😭
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
char
Ritu Raj
I don't know how to assign YES in str[3]
Ritu Raj
char
Char and???
klimi
That will bring the print form
klimi
I am not able to print this!!😭
You have to set each char a char
klimi
S[0]='Y'
klimi
Or do it as
klimi
Char* s = "yes";
klimi
Don't blame I don't know programming
klimi
Related?
Ritu Raj
I am new
klimi
/warn promo or WTF, crashed my browser
Ritu Raj
Char* s = "yes";
What does this means btw??
klimi
@linuxer4fun
Ritu Raj
s is containg base address of char type?
Ritu Raj
And YES is assigned in it?
BinaryByter
What does this means btw??
only works with const char* iirc
BinaryByter
@ollirz
klimi
I like how we link each other
klimi
It's now your thing maxi
klimi
Enjoy
klimi
BinaryByter
s is containg base address of char type?
arrays are nothing but pointers to a first element of memory
BinaryByter
does that answer your question?
Ritu Raj
Yes sir😇😇
Shivam
And YES is assigned in it?
Yeah, coz * means value at that address
Shivam
I hope you got the answer
Ritu Raj
#include<stdio.h> Int main() { char s[3]; *s="yes"; printf("%s",s); }
Ritu Raj
Will this work?
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
Language: cpp Source: #include<stdio.h> int main() { char s[3]; *s="yes"; printf("%s",s); } Errors: source_file.cpp: In function ‘int main()’: source_file.cpp:5:3: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive] *s="yes"; ^ Note: cplusplus_gcc assumed, other valid options are cplusplus_clang, visual_cplusplus, you can be more specific next time.
Ritu Raj
1)I have string of S[3]; 2)I have two conditions -if it is true then I have to print "Yes" -else "No"
Ritu Raj
I can define only one time!
Ritu Raj
Char* s = "yes";
Or I have declare it two times?
Shivam
Then why don't you use a loop?
Ritu Raj
One for yes
klimi
Then loop thought it and change it I guess
Talula
I am not able to print this!!😭
You're assinging S[3] (array point 3)... that isn't possible.
Talula
To do it normally you have to use strcpy
Ritu Raj
But I have somewhere in net
Ritu Raj
Wait
Ritu Raj