Noetics?


9:58 pm. Sunday the 27th,2009.

He was busy reading The Lost Symbol. It had been long time since he had been so engrossed in a book. It told him a fascinating idea about the power of the mind. "Like matter, the thoughts in a brain also contain mass. This 'particle' if focussed correctly could be used to alter physical matter..."

His concentration was suddenly broken when out of no where two loud speakers started singing loudly and rather annoyingly. He tried his best to ignore it. "Thus if the mind is trained well and made to focus on a particular thought, it can be used to affect the outcome of an event. While this may seem like advanced magic it.." Darn loud speakers, he thought. What the f*** did they ever actually accomplish. "..has already been mentioned in the ancient literatures itself. One only needed to see the Vedas or the Bible or any other similar text. They say the same..".Arr how I wish they shut the loudspeakers.And just like that, the loudspeakers started malfunctioning and was forcibly switched off.

"Our fore fathers have always believed that the mind held supernatural po..".Wait a minute. Did I just shut the loudspeakers using my mind. Did that happen because a lot of minds in my area thought the same?.Maybe I do possess super powers,his heart said. You need to get some sleep, said his intellect.

Note : To know about noetic science, read The Lost Symbol or see theintentionexperiment.com

See C

Well having attended a few C debugging contests, I found C can get very interesting even at the very basic levels. Here is a few questions that are worth understanding if you got any interest in C :)

*)First is the simple printf statement. Consider
int i=5;
printf("%d,%d", i, ++i);

If you guessed output as 5,6 - sorry.

Thing is printf first evaluates all the expression from RIGHT TO LEFT before printing the actual values. So actual answer would 6,6.

*)Now the comma operator. They always asked questions involving this. I didn't even know what it meant till I saw this.

*)The playing with increment/decrement operator. Consider
i=5;
j=i+++++i;

If you split the second line as j= (i++) + (++i) and calculated the appropriate value, then congrats, you made the same mistake as me :)
Seems it actually gets divided into (i++) ++ (+i) so it becomes an invalid expression.

*)Problem is to print "Hello World" without a single semi colon in the program :D

Now I thought of macros,recursion,function calls blah blah blah but as always the answer was one hell of a simple solution.
Just put the printf statement in the if condition or for/while condition thing and job done :)

*)The mother of all C questions :D
int a,i=5;
int *b=&i; //Creating pointer to i
a = i/*b;
What is value of a?
If the answer 1 popped up in your mind (after all we divided a value by same value), ha ha ha! Compile,run and see :D

Naming Convention

It always makes me wonder how people can mess a name as simple as mine. Let me tell you what I mean.

My EDC mam thought my name was Sai Shankar.
HOD thought it was Shankar.
EDC Lab mam thought it was Sai Saravanan.
So did the other sec boys for sometime. :D
Apple lab mam thought it was Sarvesh Gautham/Sai Vignesh.
uP sir thought it was Sowmya Narayan.
OS mam thinks(still :D) it is Sai Krishna.

I even had a boy from the other sec come to me and ask earnestly "Dei unnoda unmayana per ennada?" Lol!

Note : My real name is Sai Santhosh :)