[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

>Ok anon I need you to answer the following questions >What

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 5
Thread images: 1

>Ok anon I need you to answer the following questions

>What is an inline function?
>Can a constructor have return value?
>What is a pointer?
>What is boxing and un-boxing?
>How would you detect repeating characters if there are more that 2?
>>
>>61287871
>>>/wsr/
>>
>>61287871
>a function received as an argument
>no
>something that link to a memory adress for some value/object
>putting something into/out a box
>I'd read the data and analyse I and I+1
I-I'm in?
>>
>inline function
the generated machine code will not contain a "call" or equivalent instruction to a memory address containing the function code and will instead contain the actual function code in-place
the "inline" keyword is merely a suggestion; the compiler might decide not to inline the function at all

>constructor return value
no

>pointer
an integer containing a memory address

>boxing and un-boxing
an absolutely retarded thing that only exists in java where you construct a fat managed object (allocated on the heap, referred to with a pointer) for holding a primitive value

>repeat char
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>

bool fn(char *x)
{
char ch = '\0';
int len = strlen(x);

if (len < 3)
return false;

for (int i = 0; i != len - 2; ++i) {
if (x[i] == x[i+1] && x[i] == x[i+2])
return true;
}

return false;
}

int main()
{
bool res1 = fn("asdxxx");
bool res2 = fn("xxx");
bool res3 = fn("asdxx");
bool res4 = fn("xx");
assert(res1 && res2 && !res3 && !res4);
puts("ok");
return 0;
}
>>
>idk
>idk
>idk
>when you hit someone with a glove on and when you go on YouTube and talk for 10-15 minutes before finally opening a package of pills or some shit and read the label out loud
>you tell me bitch
Thread posts: 5
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.