Posted November 18, 2016

zeogold
The Puzzlemaster
Registered: Dec 2012
From United States

Alaric.us
Slava Ukraini
Registered: Feb 2010
From United States

zeogold
The Puzzlemaster
Registered: Dec 2012
From United States
Posted November 18, 2016

Little did he realize in any of that that I'm not even IN a computer science class. I hate coding, as a matter of fact, and don't even know the first thing about it. I'm a psychology major. And boy, lemme tell ya, is he one heck of a study.

Alaric.us
Slava Ukraini
Registered: Feb 2010
From United States
Posted November 18, 2016
low rated

Little did he realize in any of that that I'm not even IN a computer science class. I hate coding, as a matter of fact, and don't even know the first thing about it. I'm a psychology major. And boy, lemme tell ya, is he one heck of a study.

ZFR
I love gold!
Registered: Jan 2010
From Ireland

PaterAlf
Cookie Monster
Registered: Apr 2012
From Christmas Island
Posted November 18, 2016

Could have been priceless material for more funny dialogues in the future.

zeogold
The Puzzlemaster
Registered: Dec 2012
From United States
Posted November 18, 2016


Could have been priceless material for more funny dialogues in the future.
Don't worry though, the secret that I'm actually an innkeeper in my 40s living in the Keweenaw is still safe.

dtgreene
vaccines work she/her
Registered: Jan 2010
From United States
Posted November 18, 2016
low rated


Little did he realize in any of that that I'm not even IN a computer science class. I hate coding, as a matter of fact, and don't even know the first thing about it. I'm a psychology major. And boy, lemme tell ya, is he one heck of a study.
Anyway, does anyone know why the line of C code
int x = x;

zeogold
The Puzzlemaster
Registered: Dec 2012
From United States

Bookwyrm627
ADD Jumping Bean
Registered: Nov 2013
From United States

Alaric.us
Slava Ukraini
Registered: Feb 2010
From United States
Posted November 18, 2016
low rated

dtgreene
vaccines work she/her
Registered: Jan 2010
From United States
Posted November 18, 2016
low rated


If I put like line outside a function I get an error ("initializer element is not constant"), but if I put it inside a function the compiler happily accepts this code.
Also, did you know that the following is legal C (but not C++) (this example is from the book "Expert C Programming: Deep C Secrets")?
char x[3] = "Bob";

Cavenagh
Homeless
Registered: Aug 2014
From United Kingdom

Alaric.us
Slava Ukraini
Registered: Feb 2010
From United States
Posted November 18, 2016
low rated


If I put like line outside a function I get an error ("initializer element is not constant"), but if I put it inside a function the compiler happily accepts this code.
Also, did you know that the following is legal C (but not C++) (this example is from the book "Expert C Programming: Deep C Secrets")?
char x[3] = "Bob";

And no, I had no idea. =) I'm not a C/C++ developer so I'm not familiar with the nuances.

phaolo
Durik - Half-Orc
Registered: Dec 2013
From Italy