Pages

Friday, November 4, 2011

I am what I am..

Hi all!!!
My love is gone. I know it and I have tried to make myself comfortable with the very fact that I would never be able to get it back in this life again. I know it has been a tough time for me for quite a long period of time but what to do, the fate has already decided the thing for me.
I am not meant to be loved nor I am meant to have any sort of emotions in my life. Why the hail did I fall in love with her I dont know. NOr do I want to have any more discussions realted to it. I am finished off with this and I am not going to repeat the mistakes that I had already committed.

My love is really gone.......!!!!!! :)

Saturday, March 6, 2010

Everyone of you must have studied "call by reference" when studing the basics of "c" language ... but today i am going to delve into a more deeper concept of "return by reference"!!!
defn:::
a function that returns a reference variable is actually an alias for the referred variable . this method of returning references is used in "operator overloading" to form a cascade of memeber function calls specified in a single statement..!!!
#include"library files"
int &max(int &x,int&y);
void main()
{
int a,b,c;
scanf("%d",%d",&a,&b);
printf("\n a= %d",a,"b=%d",b);
getch();
}
int &max(int &x,int &y)
{
if(x>y)
return x;
else return y;
}

intelligent making use of pointers in c

in order to return more than one values from a single function we , intelligently need to make use of pointers..!!!
an example using pointers is illustrated below...
#include"header files"
void main()
{
int radius;
float area,perimeter;
printf("\n enter the radius of the circle");
scanf("%d",&radius);
areaperi(radius,&area,&perimeter)//we pass the refernce of the area and perimeter
printf("area=%f",area);
printf("\nperimeter=%f",perimeter);
}
areaperi(int r,int *a,int *p)
{
*a=3.14*r*r;
*p=2*3.14*r;
}
outut----
enter radius of the circle=5
area=78.500000
perimeter=31.40000

Friday, March 5, 2010

welcome again

The only way to write a good program can be summarized as follows:-
1. always get ur work be divided in a proper set of modules.
2. choose the language u feel can be well handled by u.
3. write the program for the module
4. debug it independently and then check it for errors.
5. next assemble it and then proceed .
6. by this way u will find the complexity of the larger problem being sorted into smaller complexity

Tuesday, March 2, 2010

The world of softwares is infinite with a large scope of getting those things done by your system which seems to be quite a magical task. It will be my sincere effort to bring to the knowledge of those who really want to have the latest trend in the softwares, the latest softwares and their full functionality.
The blog is under construction and would be soon updated.....
watch out for more.....