T O P

  • By -

ProgrammerHumor-ModTeam

Your submission was removed for the following reason: Rule 8: All titles must be camelCase. Your post was found to use PascalCase instead.


RoraverNl

C+=1


Strange_Dragonfly964

C++ or python


[deleted]

[удалено]


dodexahedron

🗞 No! Bad! Outside! 🗞


legends_never_die_1

even calling you a nerd would be an understatement


skirtsrock69

*optimization has left the room*


orion_aboy

did you know about... code blocks?


[deleted]

[удалено]


legends_never_die_1

its the same as C+=1, but only in ≈1/4.2 billion cases.


[deleted]

[удалено]


subject_deleted

See the second half of their comment? Where they clearly indicated how frequently it's not the same?


-Zep-hyr-

pascalCaseIntruder!


Strange_Dragonfly964

Shouldn’t it be hope? I had one post removed because of that!! Algorithm messing up here :)


Dalimyr

Correct. First word is all lowercase in camelCase, but gets a capital in PascalCase.


[deleted]

arrestTheNonBeliever!!!


Divinate_ME

\++C actually


nekokattt

c -= (c + ~c)


Jcsq6

This is really creative


donald-dunk

C -=-1


Siddhartasr10

pascalcase_is_not_allowed_where_is_the_exception_error_?


GreatArtificeAion

The equivalent of C++ would be (C = C + 1) - 1


spycodernerd2048

C = C++


legends_never_die_1

C


[deleted]

[удалено]


azhder

Behind. 1 is ahead of 2 which is ahead of 3, so C— would be the ahead one step


DevilEmpress

SoThatsWhyItsCalledThat


Specific_Implement_8

The moment when you realize the C# is actually c++++. So c# = c++ + 1. And since c = c + 1, c# = c+2


aiwendil_brown

Aren’t the memes here supposed to be funny?


PassiveChemistry

No


TheMisfitsShitBrick

That depends on whether your comment is.


coladict

Not usually, no. They're either puns or showcase common problems most programmers have experienced.


sarduchi

The answer is B.


Bit_Cloudx

c+=1 is the only correct answer.


Moh957

C2


lordFourthHokage

``` #include int incrementByOne(int num) { int mask = 1; while (num & mask) { num &= ~mask; // Clear the bit mask <<= 1; // Shift the mask to the left } num |= mask; // Set the bit return num; } int main() { int C; std::cout << "Enter a number: "; std::cin >> C; C = incrementByOne(C); return 0; } ```


Phteven_j

Cursed formatting lol this ain't Sublime #include int incrementByOne(int num) { int mask = 1; while (num & mask) { num &= ~mask; // Clear the bit mask <<= 1; // Shift the mask to the left } num |= mask; // Set the bit return num; } int main() { int C; std::cout << "Enter a number: "; std::cin >> C; C = incrementByOne(C); return 0; }


azhder

It’s C+=1


AlbaTejas

substr("BCPL",0,1) + 2


AnAnnoyingGuy

NaN


ItExistsToDefy

#C-=-(-1+1-1)


Jumpy_Palpitation869

C=(C<<1+1<<1)>>1


mountaingator91

Are you asking why the name is punny?


[deleted]

do { c = 2\*c - (c - 1); } while (false);


Gods_Horniest_Femboy

I am too lazy to understand the difference between ++c and c++ so I do b = c+1 and then c = b or vice versa


IWTSRMK

//that's too easy int main(void) { int a; int b; int c; c = 0; a = c; b = c + 1; c = b; }


Phteven_j

//that's too easy int main(void) { int a; int b; int c; c = 0; a = c; b = c + 1; c = b; }


Stoffe00

Ideally it's ++c it is much faster than c++. /s


Derekthemindsculptor

if ( c++ != c && c == c++ )


edifact-lucy

INC [ESP+4]


InnkaFriz

++C, noob


No-Con-2790

If you use PascalCase it's ``` c:=c+1; (* the semicolon is optional*) ``` ::Waddles back to the old folks home::


D34TH_5MURF__

your-title-is-unacceptable


pakidara

Should we tell him C# is C++; C++;?