Friday, August 9, 2013

Simple Linked List -for my reference !!


#include "stdio.h"
#include "stdlib.h"


struct node {
   
   int   data;
   struct node* next;
};

int length(struct node *head){
    
    struct node* current = head;
    int count = 0;
    while ( current != NULL ){
          
          count++;
          current = current -> next;
    }
return count;
}

void display(struct node *head) {
     
      
    struct node* current = head;
    int count = 0;
    while ( current != NULL ){
          
          printf("%d \t", current -> data);
          current = current -> next;
    } 
    printf("\n \n");
}
     
int main(){

    int k = 0;
    struct node* head = NULL;
    struct node* second = NULL;
    struct node* third = NULL;
    struct node* twothree = NULL;
    
    head = malloc (sizeof (struct node));
    second = malloc (sizeof (struct node));
    third = malloc (sizeof (struct node));
    twothree = malloc (sizeof(struct node));
  
    head -> data = 1;
    head -> next = second ;
    
    second -> data = 2;
    second -> next = third;
    
    third -> data = 3;
    third -> next = NULL;
    
    printf("List with three elements \n");
   
    display(head);
    k = length(head);
    printf("\n adding a node in between second and third \n");
    
    twothree -> data = 10;
    second -> next = twothree;
    twothree -> next = third;
    
    display(head);
    k = length(head);
    display(head);
    
    printf ("\nThe length of the list %d\n \n", k);
    
    printf ("\nDeleting a node twothree \n \n");
    
    second -> next = third;
    
    k = length(head);
    display(head);
    printf ("The length of the list %d \n \n", k);
    
    
getch();
return 0;
}
    

Wednesday, June 27, 2012

How to be confident

Confidence = Trust in your own power and judgment

1. Changing dressing style and hair style
2. Go to gym to have fitness
3. Powerful walking style
4. Good posture
5. Take up spaces
6. Compliment other and be gracious
7. Sit in the front row
8. Be vocal
9. Focus on others
10. Involve charity work
11. Do outside your normal activity
12. Distinguishing from others
13. Have an eye contact
14. use words like Man/ Dude
15. Nod up
16. Smile when you walk into a room
17. Talk to people
18. Do not compare yourself with anyone
19. Help one person per day
20. Follow your passion
21. Label yourself positively

Ref : http://www.youtube.com/watch?v=8SC7-EUkFNo

Friday, June 1, 2012

Lyrics

Desh Mere 

Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu
Mitta Ne Se Nahin Mitte
Mitta Ne Se Nahin Mitte Darrane Se Nahin Darrte 
Watan Ke Naam Pe 
Watan Ke Naam Pe Hum Sar Katane Se Nahin Darrte
Mitta Ne Se Nahin Mitte
Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu

Hazaron Khwaab Roshan Ke Sulagti Si Nigaahon Mein 
Sulagti Si Nigaahon Mein 
Kafan Hum Baandh Ke Nikle Hai Azadi Ki Rahon Mein
Kafan Hum Baandh Ke Nikle Hai Azadi Ki Rahon Mein
Nishaane Pe Jo Rehte Hai Nishaane Se Nahin Darrte 
Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu

Hamari Ek Manzil Hai Hamara Ek Naara Hai 
Dharm Se Jaat Se Zyaada Humme Yeh Mulk Pyaara Hai
Dharm Se Jaat Se Zyaada Humme Yeh Mulk Pyaara Hai
Hum Is Pe Zindagi Apni Mittane Se Nahin Darrthe
Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu

Mitta Ne Se Nahin Mitte Darrane Se Nahin Darrte 
Watan Ke Naam Pe 
Watan Ke Naam Pe Hum Sar Katane Se Nahin Darrte
Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu
Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Jaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu
Desh Mere Desh Mere Meri Shaan Hai Tu 
 
Meaning
 
 

Wednesday, May 30, 2012

Economic Crisis

Last two decades, India has been exporting software and last decade, decrease in Indian rupee use to have good impact much, because quantity (in dollars) of exports (software) is greater than quantity of imports (in dollars).

But, now decrease in rupee value creates issue because of

1) We import more (oil, cosmetics, food items etc..) compare to exports (Softwares and other products)
2) Our deficit is in dollar rather than in rupees to the world bank
3) Decrease in rupees creates instability and  investment unfriendliness for the foreign companies..

I am in Singapore (1 SGD = 39 Rs (Feb) and now 1 SGD = 43 Rs (May)), I should be happy but I can not be happy and I can not enjoy/ diggest the drastic decrease in Indian rupee..  India does not deserve to be in this situation !! 


Around 300 million Indians are getting benefited because of liberalization in the year 1991, credit goes to Dr. Manmohan singh. PM (Pranab Mukharjee) , please do something with the help of PM (Prime minister) !!


Am I right ?

Vande Mataram and Bharath Matha Ki Jai !!

Tuesday, May 8, 2012

Espncricinfo- an observation


Small observation on espncricinfo !!
--------------------------------
Though Cricinfo is not as great as Facebook or Wikipedia, it has cricket match archive, player information in all forms from 18th century, cover stories, articles .. must be extraordinary with respect to database management, statistics collection and presentation of the data efficiently and effectively

second thing is, Facebook or Wikipedia.. public load information from all over the places, but in cricinfo, set of people (employees) collect and load the information...

Third : They (employees) literally type the commentary for each and every ball.. and update is fast.. may be 1 ball delay !!any many things..

Overall, http://www.espncricinfo.com/ : IT professionals, Statisticians, GUI specialists as well as human-factor analysts to admire !! It will do more in future

-- Jithendrian
Cricinfo website viewer !!