Feeds:
Posts
Comments

Archive for the ‘Uncategorized’ Category

My Chweet Childhood

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

Read Full Post »

All that matters

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

Read Full Post »

Netra IMproved!!!

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

Read Full Post »

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

Read Full Post »

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

Read Full Post »

8th Mile fest

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

Read Full Post »

Older Posts »