14th November, the children’s day made me feel nostalgic. I have been wanting to post this blog since that day, but some how office work kept me busy enough to not even let me press the publish button. So finally, here it is.. after 10 days of delay.
Those were the best days of my life [...]
Archive for the ‘Uncategorized’ Category
My Chweet Childhood
Posted in Uncategorized on November 25, 2009 | 4 Comments »
All that matters
Posted in Uncategorized, tagged Bhagavad geeta, solutions on October 25, 2009 | 4 Comments »
I bought an extremely handy, very well presented Bhagavad Geeta yesterday. As the introduction explains, “The uniqueness about this religious work starts with the very setting in which its described — the warfield. This is in contrast to other works, which are discussed in the more peaceful ambience of a penance, grove or amidst the [...]
Netra IMproved!!!
Posted in Uncategorized on May 12, 2009 | 4 Comments »
This is a blog after a looong pause…
Life has been a sinusoidal wave since last 9 months. Some times i ll be so happy that i ll thank GOD for giving me this life, but sometimes things are so disappointing that i keep scribbling “Ultimately, everything boils down to nothing ” in my diary.
Here are [...]
“Random” between limits
Posted in Uncategorized on June 11, 2008 | 7 Comments »
Many algorithm correctness and performance tests, games and others require random number generation. Here is a way to generate a random number between two limits min and max.
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
int randomnum;
int min=1; /* lower limit */
int max=7; /*upper limit */
time_t seconds;
time(&seconds);
srand((unsigned int) seconds); /*seed for rand() */
randomnum = rand() % (max-min+1) + min; /*generate random number [...]
Nested Comments
Posted in Uncategorized on April 4, 2008 | 7 Comments »
One of the questions posed in 8th mile OSP prelims was :
Write a program to check if the compiler (C compiler ) allows nested comments.
Here is the solution I came up with
#include<stdio.h>
int main()
{
int i=10,*j,k,l=20;
j=&l;
k= /* /* */i */*j;/* */ 1;
if(k==i)
printf(“does not allow nested [...]
8th Mile fest
Posted in Uncategorized on March 31, 2008 | 1 Comment »
8th Mile is the techno-cultural fest conducted by our college, RVCE. The event occured after 5 long years and it was a huge success. The first day featured eastern music and eastern dance competitions. The performances were great and we enjoyed every single moment. On second day, we had technical events. We won second [...]