Dima
what about that great idea: if (word.contains(“sir”)) do #googleit
Mentos
Pardon sir I can't get u
Mentos
Like sir how to use it as I am so much confused in the use of pointers and function
Roxifλsz 🇱🇹
what about that great idea: if (word.contains(“sir”)) do #googleit
Also it ticks one of the boxes on the skid bingo
Mentos
what about that great idea: if (word.contains(“sir”)) do #googleit
6 letter words containing sir desire. sirdar. sirree. sirrah. sirupy. sirups. sirras. sirees.
Mentos
This?
Mentos
LOL
Dima
Dear Sirups
Ανδρέας 🇮🇹
Sir Dima Ioshytin
Mentos
Mentos
Confused
Roxifλsz 🇱🇹
Because you're a pleb, fuck off if you don't like it here
olli
To discuss about C and C++. Somehow it can get tedious if people ask things which have been answered multiple times in here or on sites indexed by your favorite search engine.
Ariana
XDDD
olli
Sir actually what is the difference between array char and string?
A string is a concatenation of chars. In C strings are represented as "char array"
Ariana
Yeah something like that
Ανδρέας 🇮🇹
XDDD
ikr
Ariana
mdr
Mentos
Oii...( ̄ー ̄)ニヤリ
Roxifλsz 🇱🇹
Don't tell me what to do, this is the internet, I can be mean all I want
Ανδρέας 🇮🇹
/rules
Ανδρέας 🇮🇹
n-nani?
Roxifλsz 🇱🇹
/rules
Rules are in pinned msg
Badugar
## Rules #pinned * You are not entitled to an answer, getting angry about not answered questions will get you warned. * Not checking your problem in google (or any other search engine) first will get you a warn. * Asking for something that is in the pinned message right after joining WILL GET YOU BANNED. * C/C++ discussion preffered (assembly also allowed), asking about other languages (or groups for other languages) right after joining will get you BANNED. * Reverse enginnering, hacking and related topics are allowed, but asking to hack facebook, instagram, etc. is NOT allowed. Also if you ask "how to become a hacker" and obviously have zero knowledge on anything related to that you may get warned or banned. * Legitimate requests for help on code and programming questions are welcome. A request is considered legitimate if it describes your problem, what you've done so far and what went wrong. Requests such as "write my program" or "do my homework" are never considered legitimate. Asking not legitimate questions will result in a warn or ban. See https://stackoverflow.com/help/mcve on how to write good questions. * Asking for book recommendations is ok, but "pls give pdf book" is not allowed, find books by yourself. Posting illegally copied books (or links to those books) is also not allowed. * Only English language is allowed, if you speak shitty English or don't understand anything in English YOU WILL BE BANNED. * A little bit of programming related memes, jokes, shitposting are allowed. * NSFW content (porn, nudity, etc.) is not allowed. * Spamming/advertising (job posts are also ads, so ask an admin before posting) will grant you a warning or an immediate ban if you do it right after joining. * Religion, politics and ideological topics are forbidden. * Long code snippets must be posted via a snippet website(links below), posting pictures of code and posting long snippets in the group is not allowed. * If you encounter a problem, while using turbo C++, you will not be helped, use another more modern IDE. * Don't post compiled executables, that is obviously a security risk ## Resources About asking good questions: * [English](http://www.catb.org/esr/faqs/smart-questions.html) * [Translations](http://www.catb.org/esr/faqs/smart-questions.html#translations) For posting long code snippets: * [GitHub Gist](https://gist.github.com) * [Ubuntu Paste](https://paste.ubuntu.com/) * [Pastebin](https://pastebin.com) ## Reports If you notice any forbidden content, please use the /report command while responding to the offending post to report it to the admins.
here
Ανδρέας 🇮🇹
here
danke herr
Badugar
danke herr
prego ;)
olli
Sure, no one wants to read the whole history here. However googling "string char array c" yielded 17.4 Million results. Where one of the first three pages states Strings are actually one-dimensional array of characters terminated by a null character '\0'. Thus a null-terminated string contains the characters that comprise the string followed by a null. IMHO: Everyone can help contribute to "better" discussion by briefly stating what you already know and where you struggle
JITHIN P
Thanks guys
Deleted
I have to start learning c programming what I should refer??
Ariana
The C programming language -K&C or smt like that
Ariana
or just you know stack overflow
Mihail
Why?
Anonymous
Functions in c programming.how to learn any source
olli
Functions in c programming.how to learn any source
https://en.cppreference.com/w/c/language https://en.cppreference.com/w/c/language/function_declaration https://en.cppreference.com/w/c/language/function_definition
Anonymous
Thanks
Anonymous
Hey guys
Anwar
How to learn c programing and from where ???
Badugar
Your favourite search engine for example.
Nine
How can i store the current time so as to use it later?
Anonymous
Anonymous
Functions in c programming.how to learn any source
i prefer geeksforgeeks.com Android app is also available
Ariana
wut
Shivang
How to use fread and fwrite how this function work
@2c
Thank u
olli
How to use fread and fwrite how this function work
https://en.cppreference.com/w/c/io/fwrite https://en.cppreference.com/w/c/io/fread
Anonymous
Just wondering, are trace tables actually used by programmers in real life or do most programmers do a trial and error method ?
olli
Just wondering, are trace tables actually used by programmers in real life or do most programmers do a trial and error method ?
When your operations runs for several hours, trial and error might not be the right approach to go with.
Ludovic 'Archivist'
https://en.cppreference.com/w/c/io/fwrite https://en.cppreference.com/w/c/io/fread
I hate those functions so much. Why is the world not simply POSIX ready
olli
I hate those functions so much. Why is the world not simply POSIX ready
I like them - why don't you? They are easy to use and safe enough. Additionally they have way less overhead than C++ streams I don't consider pread or read superior Not completely sure what you define as being "posix ready", even Linux is not Posix compliant
Badugar
Wasn't it like that Linux is POSIX-ready, but does not fit the SUS-specification ? OT, i know.
Anonymous
Eazy peezy
Aiman
is this is trace table??
Anonymous
int * p = (void *) 1; /*why this is seg fault ?*/
Anonymous
Anyone who has ever though of any programme to instal on phone against change of serial number and Gps locator when its off....please share.Am frustrated when I lost my phones
Anonymous
It was on a light note enquiry....I know the topic of the group ?people learn from everyone,telling me to ask it elsewhere isnt add any value
Errol
Hi, can somebody take a look at my code, i don't know what's wrong. Please pastebin.com/HRV8EA17
Ariana
Dude how do we know what you want to do
Mark
Dude how do we know what you want to do
how don't you know then???
Mark
you're (probably) a goddamn programmer
Mark
you know everything
olli
int * p = (void *) 1; /*why this is seg fault ?*/
Because you are probably accessing the address 0x00000001 which is most likely not accessible by your program
Anonymous
Because you are probably accessing the address 0x00000001 which is most likely not accessible by your program
/*more specific*/ int * ptr = (void*) 1; printf("The value of ptr is %i\n",ptr); /*why this is legal*/ printf("The value of ptr is %ls\n",ptr); /*why this is seg fault*/
Anonymous
not just print as string ?
olli
not just print as string ?
but which string is stored at 0x00000001 ?
Anonymous
any byte that can converted into string.
olli
any byte that can converted into string.
but you are not allowed to access the memory at that location
Anonymous
ahh, i can access the location, but i cant access the value ?
olli
ahh, i can access the location, but i cant access the value ?
accessing location in terms of getting to know the location, yes accessing location in terms of reading there, no