[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]

>Perfectly valid c code ***************var++; This is why

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: 53
Thread images: 8

File: 1428719934954.jpg (50KB, 547x471px) Image search: [Google]
1428719934954.jpg
50KB, 547x471px
>Perfectly valid c code
***************var++;


This is why nobody takes you fags seriously.
>>
public boolean meme()
{
try
{
return true;
}
finally
{
return false;
}
}

What do you think this returns in Java
>>
How would "Notice me senpai" be written in java?
>>
>>60027094
>C
Who cares?
>>
>>60027094
#define fine #define de #define/**/ /**/*#define*/
#define de #define
#define do de

do { begin
do you like (green eggs and ham++)?
do you eat them: in a box?
do you eat them with a fox?0
do } end

fine
fine, just fine.

/*@@@@@@@@@@@@=___
/@@@@@@@@@@@@@@@@@@@a
@@@@@@@@@@@@@@@@@@@@@
|@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@
\@=~ ~~@@@/
\ /
\ |
/@@@@@===__ |
@@@@@@@@@@@@==/
/@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@
/ ~~~====@@@@@@
/ ~~~/
| /
/____ |
@@@@@@@@=====__/
@@@@@@@@@@@@@@@@
/@@@@@@@@@@@@@@@
/@@@@@@@@@@@@@@@|
___/ ~~~~@@*/
char groo(p,q)int p;int q;{return
((char) (--q*q+ (p/10)*q+--p))
; }void grem /**/ (){ int x=0
; printf(" ")
;/**/ /**/ for(;x<16
; x++)printf
( "%c",groo(x
, 8)) ;printf
( "\n\n")
; }void cred(a
) int a;{int
x=0;printf
( "%c "
, /*_____===~*/ groo(a,8))
; for(;x<16
; x++)printf
( "%c",(char)
a*16+ x);printf(
"\n");}main(a
,b)int a;
char **b ;{int x=2;
do(x=0;x<4;x++)exit(0);
for(grem();x<1<<3+(int)b[0]
[0]%2;)cred (++x-1);}
>>
"C was a mistake"
--Dennis Ritchie, Turing Award Speech (1983)
>>
>>60027132
First true, then false.
>>
File: 1462417500637.jpg (233KB, 503x662px) Image search: [Google]
1462417500637.jpg
233KB, 503x662px
>>60027338
>>
>>60027539
I'd just like to interject for a moment. You appear to be using an element from this image in your post: https://commons.wikimedia.org/wiki/File:Dennis_Ritchie_(right)_Receiving_Japan_Prize.jpeg
You may have done this accidentally, but you've violated the terms of its copyright license. This is a serious offence and I hope you take it as seriously as it deserves.
Not to say that you're not allowed to create derived works from this image, you are, but this picture is released under the Creative Commons Attribution 2.0 Generic license. Therefor, you are free:

to share - to copy, distribute and transmit the work;
to remix - to adapt the work;

Under the following condition:

attribution - You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).

In this case, the attribution requirement is resolved simply by including the following in your post:

By Denise Panyik-Dale [CC BY 2.0 (http://creativecommons.org/licenses/by/2.0)], via Wikimedia Commons

Now that you have read this, I hope you have a better understanding of your rights and obligations when remixing and sharing this work. They will let you edit, now be nice and credit~
>>
>>60027094
This would actually give a warning since the dereferencing part is unused.
>>
>>60027258
That doesn't compile.
>>
>>60027132
false since true/false is false
>>
>>60027811
Wouldn't a method/function usually break after a return is called?
It would try to return true, succeed then it wouldn't run the finally part because the method has exited, right?
>>
>>60027644
fair use faggot
>>
>>60027903
No. Finally is pretty much always going to run and if you return in a finally you're a fucktard because it can mask pretty much any exception ever and it's return will preempt return in the try block.

Also if you return in a try, finalize will run before your try block return.
>>
>>60028049
fair use doesn't mean you don't' have to cite your source
>>
>>60028049
Do you understand what fair use means?
>>
>>60028066
>>60028074
Yes it does faggot:

>the fair use of a copyrighted work, including such use by reproduction in copies or phonorecords or by any other means specified by that section, for purposes such as criticism, comment, news reporting, teaching (including multiple copies for classroom use), scholarship, or research, is not an infringement of copyright.
https://www.copyright.gov/title17/92chap1.html#107
>>
>>60027903
The only way to avoid finally is to exit or halt the JVM. The whole point of finally is that it will always run, no matter what happens.
>>
>>60028105
>criticism
You're not criticizing the photograph or Dennis Ritchie
>comment
You're not commentating on the photograph or Dennis Ritchie
>news reporting
You're not reporting on any news
>teaching
>scholarship
>research
No, no, and no.
>>
File: idiots.png (74KB, 1905x536px) Image search: [Google]
idiots.png
74KB, 1905x536px
>>60028133
>such as
Dumb ass, the list isn't inclusive. Parody is fair use. kys

http://fairuse.stanford.edu/overview/fair-use/what-is-fair-use/
>A parody is a work that ridicules another, usually well-known work, by imitating it in a comic way. Judges understand that, by its nature, parody demands some taking from the original work being parodied. Unlike other forms of fair use, a fairly extensive use of the original work is permitted in a parody in order to “conjure up” the original.
>>
>>60028169
>parody
You're not parodying the photograph or Dennis Ritchie.
>>
>>60027094
>C
literally nobody writes in c these days
>>
>>60028176
yes he was faggot.

go be btfo somewhere else
>>
>>60028189
>yes he was
No, he wasn't.
>>
>>60027132
Java isn't a shit language full of undefined behaviour like C, so we can actually determine what that will return.

Because the
finally
block is triggered by the first return, its own return will override the previous, resulting in a value of false in the stack.

You're welcome.
>>
File: 1488866684639.gif (1MB, 480x287px) Image search: [Google]
1488866684639.gif
1MB, 480x287px
>>60028198
then sue him faggot. GL
>>
>>60028187
and yet every software that matters is written in C
>>
>>60028221
Seems fucking retarded. Why does it even exist? You could write the code at the end and perform the same function. This would only be useful if you could declare it within objects.
>>
>>60028265
>t.uemployed hobbyist
>>
>>60028224
>Drumpf reaction pic
Opinion descarted.
>>
>>60028287
>descarted
deprecation**
>>
>>60028266
because
finally
will always execute, even if an exception is thrown in the try block. It's useful for closing open file handles, database connections, etc.
>>
>>60028266
http://www.yegor256.com/2015/07/28/checked-vs-unchecked-exceptions.html
>>
File: 1482184676973.jpg (91KB, 633x758px) Image search: [Google]
1482184676973.jpg
91KB, 633x758px
>>60028287
>tfw your opinion gets descarted
>>
>>60028306
>>60028313
That makes sense then.
>>
>>60028265
>yet every software that matters is written in C
That'd be mostly Java and C++
>>
>>60028265
Windows is written in C++
>>
>perfectly valid Python code
property([]).__init__()


This is why nobody takes you fags seriously.
>>
>>60028265
the Linux kernel is written in C / assembly but I can't really think of anything else important that's used nowadays
>>
>>60028670
linus is outdated trash software
nobody really uses it anymore besides some rare cases when it's a must like when the company is too poor to get windows licenses
>>
>>60027094
># **********************************************C

found your problem
>>
File: 1492692464159.jpg (87KB, 640x633px) Image search: [Google]
1492692464159.jpg
87KB, 640x633px
>>60028696
>Doesn't know about Android
>Doesn't know how servers are run
>>
>>60027094
>C
Literal retro hipster garbage
>>
>>60028901
>implying nu-males go anywhere near C
>>
File: 1472436203265.jpg (122KB, 1280x720px) Image search: [Google]
1472436203265.jpg
122KB, 1280x720px
>>60027644
>They will let you edit, now be nice and credit~
>>
File: itsamemeyoudip.png (104KB, 295x223px) Image search: [Google]
itsamemeyoudip.png
104KB, 295x223px
>>60028133
It's parody, faggot
>>
>>60028670
Low level Drivers you autistic faggot, for any operating system
>>
>>60029428
What is kernel but a bunch of drivers?
>>
>>60031101
That includes drivers for Windows and OSX as well, along with the Unix-like OSes. So there's still C in the Windows and OSX kernel, two of the most used OSes today
>>
>>60028670
>I can't really think of anything else important that's used nowadays
Most libraries worth giving a shit about are written in C.
>>
>>60027094
4 + 1 is the same as
4 - (-1)

This is why nobody takes math seriously.
>>
>>60031681
yeah how the fuck does that return 5, it should be -5 as the first minus applies to the 4
Thread posts: 53
Thread images: 8


[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.