Latest Headlines from Cricketnext.com

Thursday 10 November 2011

C program to print acute angled triangle


#include<stdio.h>
#include<conio.h>
int main()
{
      int i,j,k,z,m;
      char a;
      printf("Enter of what do you wanna have the triangle\n");
      scanf("%c",&a);
      printf("\nHow many lines of triangle do you want?\n");
      scanf("%d",&z);
      m=z;  
      for(i=0;i<z;i++)
      {
                                         
                      for(j=0;j<m-1;j++)
                      printf(" ");
                   
                      for(k=0;k<i+1;k++)
                      printf("%c ",a);
                      printf("\n");
                      m--;
                   
      }
getch();
return 0;
}

C code for comparison 2 strings using pointers


#include<stdio.h>
#include<conio.h>
#include<string.h>
int comp(char *a, char *b,int x,int y);
int main()
{
    char g[50],f[50];
    int q,w,e,r;
    printf("Enter first sring :\n");
    gets(g);
   
    printf("\nEnter second string:\n");
    gets(f);
   
    comp(g,f,strlen(g),strlen(f));
    return 0;
}

int comp(char *a, char *b,int x,int y)
{
    int i;
    if(x!=y)
    printf("The strings are not same.");
    else
    {
        for(i=0;i<x;i++)
        {
                        if(*a!=*b)
                        {
                                  printf("Not same");
                                  getch();
                                  return 0;
                        }
                       
                        *a++;
                        *b++;
        }
        printf("Strings are same.");
    }
getch();
return 0;
}
                       
                       

Use of Malloc function in C with example


#include<stdio.h>
#include<conio.h>
#include<stdlib.h>

int main()
{
      int *p,*table;
      int size;
      printf("size?\n");
      scanf("%d",&size);
      printf("\n");
      table=(int*)malloc(size*sizeof(int));
      if(table==0)
      {
                                                   printf("No space");
                                                   return 0;
      }
      printf("\n Adress of first byte is %d\n",table);
      printf("Enter values\n");
      for(p=table;p<table+size;p++)
      scanf("%d",p);
      for(p=table+size-1;p>=table;p--)
      printf("%d is stored at address %d\n",*p,p);
      getch();
      return 0;
      }
     
                                                 

Reversing a string using pointers


#include<stdio.h>
#include<conio.h>
#include<string.h>
int rev(char *p,int x);
int main()
{
                 int m;
                 char a[10];
                 printf("Enter string:\n");
                 scanf("%[^\n]",a);
                 printf("You enetered:\n");
                 puts(a);
                 m=strlen(a);
                 printf("after reversing:\n");
                 rev(&a[strlen(a)],m);
                 getch();
                 return 0;
}

int rev(char *p, int q)
{
    int i=0,j,z;
   
    while(i!=(q+1))
    {      
    printf("%c",*p);
    *p--;
    i++;
    }
    getch();
}

Friday 4 November 2011

3 instances of Mahabharata in which Dharma is violated?




The Mahabharata is a great hindu epic since ancient time which is based on the  Kurukshetra war and the Kauravas and Pandavas. The epic mainly describes about the war which lead to the formation of the great epic. The epic consists of about 74000 verses alongwith long prose passages. In the Mahabharata there are various incidents of Dharma being violated and it is the only reason which led to the war and furher led to the great epic formation. Also there are various instances of dharma being violated:-



1)  Duryodhana’ trap:-
Duryodhana is mentored by his maternal uncle Shakuni, who desires the elevation of his sister's children at the expense of the Pandavas. Shakuni masterminds most of Duryodhana's plots to humiliate and kill the Pandavas. When Bheeshmapitamah asked Dhritrashtra to declare the eldest heir, Yudhisthira as the King of Hastinapur, Duryodhan’s old jealousy towards the Pandavas arouse once again. He decided  to kill all the Pandavas and finish the entire generation so that he could take hold of all the property and wealth that they possessed and could obtain the throne of Hastinapur. He  built a palace for the Pandavas to live in by his trusted mason, Purochan. The palace  was built of ‘lacquer’ ,’hay’, ‘ghee’ which are very flammable. He then asked his father, Dhritrashtra to send the Pandavas to a fair which was then being held in the forest, Varnavrat without letting his father know about his scheme,where he had made palace. When the Pandavas visited the fair, Duryodhan invited his Pandavas and their mother Kunti to live in the palace he gifted, accept it. He had told Purochan to stay back there by making a secret way out and after when they all sleep, he had to burn the palace with them inside. Vidur knew that there was some problem and a strategy made by Duryodhan .So he immedialtely sent message to the Pandavas informing about plan of Duryodhan. The Pandavas did not want to tell anyone about it, so they  found a solution and they decided to dig a secret underground tunnel that could take them out of the palace to the forest without the others knowing. Purochan as told ,  set the palace to fire. But the Pandavas escaped from the palace which annoyed the Duryodhana. From the above thing we can easily say that Dharma is violated by Duryodhana as he wanted to get the empire and throne he tried to defeat his cousins and as he was not successful he did try to find unfair means of killing the Pandavas.
2.Karna’s Death:-
Karna was one of the greatest warriors whose martial exploits are recorded in the Mahabharata,Karna was the son of Surya and Kunti. He was born to Kunti before her marriage with Pandu. Karna was the closest friend of Duryodhana and fought on his behalf against the Pandavas his brothers in the famous Kurukshetra war. Karna fought against misfortune throughout his life . Many people admire him for his courage and generosity. Karna was a good archer as Arjuna . So as in the  world  one would a hate the people having more power  than onself . As Karna would get defeated by Arjuna so hatred developed in the heart of Karna. Karna had got boon and many curses from many Gods. He was also was given a boon to use the strongest weapon which could kill any one and it was obvious that he stored this weapon for killing none other than Arjuna but since Krishna knew that he adopted this technique. He asked Bhima to bring his son Gattothkach for fight as Bhima was told by his son Gattothkach that he would be there whenever his father needs him. Also he was asked by Duryodhana to make use of his weapon to kill him and so he had no other choice but to use his gifted weapon which he desired to use on Arjuna. During the battle between the two sides when it came as a fight between Arjuna and Karna the wheel of Karna’s chariot got stuck in mud. Also he was given a curse by some saint that he would forget also his knowledge of weapons when he would actually require it the most. So, he left his arms and got down the chariot in order to remove the wheel of chariot but all his attempt were in vain. He was armless and it is  the rule that one could not attack an armless warrior in the battle but then Arjuna killed him even though he was unarmed and this was the an unfair way of killing as it was against the rule of a war. Thus this led to the death of Karna due to the Adharma of Arjuna.

3.Abhimanyu’s Death:-
Another instance is of ‘adharma’ is when Abhimanyu , son of Arjun is killed illicitly. On the 13th day of battle, the Kauravas challenge the Pandavas to break the chakravyuh or circular battle formation. The Pandavas accept it since Arjun and Krishna knew very well how to do the required. But on that day, both of them got engaged in fighting at the warfront against another set of people. So, they had to send Abhimanyu for the challenge. Abhimanyu knew well how to break into the ‘chakravyuh’ but he did not know the tactics to move out of it. The remaining Pandavas decided to accompany him inside but could not break in as only Arjuna out of all Pandavas was allowed to break the chakravyuh.  So he was left alone to fight all. But owing to his valour fought them single-handedly. When he killed Duryodhan’s son, it enraged the Kauravas and they decided to trick him.  Karan went from behind and snapped his bow. Dronacharya attacked from the front and killed his horses and broke his chariot wheels. Abhimanyu continued fighting with his sword but the opponents break the code of war of one-to-one-fight and attach Abhimanyu in a group. Soon, he loses all his weapons and he is killed.
This incident shows how the Kauravas and their allies took support of improper ways of adharma to kill a armless man. The code of conduct was set to be followed by all. But they did not pay focus to it when it came to killing their enemy. Not only did the six persons fight a single person simultaneously but also they killed him when he did not possess any weapon to defend himself which was strictly against the code. If only had they followed the code, their attack would not have been inspired by ‘adharma’ and it would be possible that by following the right path they might have been successful in killing Abhimanyu.




Draupadi's question:Can a man who has lost himself loose somebody else?




The Mahabharata is a great hindu epic since ancient time which is based on the  Kurukshetra war and the Kauravas and Pandavas. The epic mainly describes about the war which lead to the formation of the great epic.The epic consists of about 74000 verses alongwith long prose passages.

       In the epic there is an event in which Duryodhana invited Yudhishthira for playing a dice game against his uncle Shakuni who was very smart in playing dice game. Yudhishthira accepted the invitation for the game. Shakuni wanted to play with Yudhisthira  as he had idea for trapping the Pandavas and all there possessions. Shakuni was playing from the side of Kauravas as he was sure that he will win the game. Although many insisted not to play the game, Yudhishthira still wanted to play the dice game.

       As decided the game started and one by one Yudhishthira started to lose but he still continued to play more. As the time commenced one time came when Yudhishthira had lost his state of Indraprasth, wealth, cows, crops and not only this but also  he lost his brothers one by one . Whenever Yudhisthira tried to back out, he would be taunted by Shakuni and his family people. Thus through this dubious game, Yudhisthira lost everything to his cousins. After that when he lost every thing to his brothers he had no other option but to bet on himself which also had the same results. Now he lost himself and nothing left to play but then Shakuni and Duryodhana gave them a golden chance which was indeed the biggest trap to make the bet on her beloved and beautiful wife  , Draupadi. Although Yudhishthira knew about the intention, he then also kept  his wife on stake. With Yudhishthira the same thing happended and lost his wife Draupadi. At this situation the question came by Draupadi   that was it possible that after losing onself how can one bet others. The answer is that as he had lost himself there was no other thing left .Moreover he had faith in her wife that she will support and can live with her.
Also he thought that as he has lost everything so there was no other option left with him. Indeed there was injustice done with Draupadi since it was the most fundamental rule of any game that one cannot play the game after being lost. Here also the same rule is being violated by Yudhishthira and the reason is simple that his brothers allow him to do so since they wereintersted in one more and the final defeat of Yudhisthira which would give them their destiny Draupadi. And also Yudhishtira thought that it would be better that she would remain with her and if he hasn’t bet her than she would not remain with her and there would be a possibility of losing her for throughout the life and so he took the risk of betting her.

Also although after losing Draupadi , she had to face many difficulties as injustice was done over her but as there was no one to support Lord Krishna himself came and saved her. Moreover as it wasn’t in the hands of Yudhisthira he couldn’t do anything. Also Yudhisthira may have thought that it would be better to bet her as he might win and not lose. Moreover the love towards Draupadi was so much that he didn’t want to get separated from her and so he might have thought that it was better to bet her. Draupdai must have not questioned Yudhisthira as it would be disrespect of Yudhisthira and would have remain quiet. Also Yudhisthira must have some or the other mindset due to which he must have bet her beloved wife. Although in the game of dice if one loose himself its not known that we can bet others but whatever Yudhisthira had done would have been right.


Thus by this way the Pandavas had to suffer by playing the game of dice but still the question asked by Draupadi was unanswered that whether the injustice done with her was’nt wrong?  But I really would say that there was no injustice done along with Draupadi because whatever Yudhishthira had done would have been right as she was her wife onlyand he might have though for some instance and than betted her. And also one should not have any questions on there elders as whatever they would do would be right for them.

Why did Peter Brook choose International cast for the Mahabharata



“The Mahabharata” is a movie directed by a foreign artist Peter Brook which initially was a 9 hours long play which was later converted into the movie in 1989.The movie exclusively explains about the great hindu epic Mahabharat. It involves the incidents about Kauravas and Pandavas. The great point of the movie was its cast. The director had chosen international cast for the movie.This showed that the epic is not only related towards the hindu people but also for the whole world.

He also used the international cast as he wanted the whole world to get involved and take interest in the great epic. Also by taking foreign casts he did wanted to add the flavour of hollwood due to their speech and act as it would be praised and liked all around the world . If the director had tried to choose only Indian cast than the movie would not attract foreign people and wouldn’t be much attractive as it is. Also he director has also taken an Indian artist so to balance both the sides. Moreover the main success of the movie is its story and acting which was the result due to foreign cast and so the people were eager to know and watch the movie.

Saturday 10 September 2011

Information on Vandemataram and Jana Gana Mana


India described in Vandemataram and Jana Gana Mana

Vandemataram
Vandemataram is a song which was originally written in Bengali and Sanskrit language and is composed by Bankim Chandra Chattopadhyay . The song was extracted from the book “Anandmath” which is written by Bankim Chandra Chattopadhyay. The song played an important role  in getting the independence of India. The word Vande Mataram means “ I bow to Mother India”.The poem consists of 6 stanzas but mostly it’s first stanza is being sung by all the people at present.

Each line in vandemataram describes about the varied culture of India like it describes that the mother land is rich by resources and rich in nature. The poem describes in short that how India is and  gives vivid description about it. It also describes about the blossoming tree and the nature around.It arouses the feeling towards one’s country. The word Vande—means worship while Mataram—means mother,which means I worship my mother i.e India. Here in the poem the mother is one which gives pure and sweet water (Sujalaam). While the mother land also gives green vegetation  and it describes about a mountain around which sandal tree are found. In the poem it is also described that the motherland provide us  a large land and trees. The poem also describes about the trees which are expanded and decorated by the flowers and also for medical purpose (kusumita). By the agriculture we get crops which are required to live upon  is also described in the poem(shasya).The song also describes about India that we enjoy our night with shining moon and stars around. The poem also describes about the art of the people in India. And also tells that the people are full of wisdom an their love towards the their country is very much. It tells about the  various passion towards the land and also the people.

Vande mataram was the slogan for freedom during the various freedom movements in the struggle against the britishers. The internal core of the song Vandemataram is basically a hymn to Goddess Durga. Although many people of different caste had protested over it but finally it was accepted by the government. The song has various different tunes including SouthAsians and classical ragas. Vande mataram describes the culture and the religion of India in all. Also the song Vandemataram .

It may be seen that the first two stanzas except for the reference to the country as Mother, the hymn does not contain any symbol or imagery which might affect communal sentiments. However, the next stanza equates the motherland as a goddess to be worshipped in a temple, in fact, evoking Durga, the destroyer of enemies, holding her ten weapons of war.  It is pertinent to mention at this stage that in the time of Bankimchandra, Bengal was under the rule of a Mughal Governor and the novel Ananda Math, which is means by the author to launch this hymn, is a story based on the militant revolutionary activities of a group of Hindus in the background of the Sanyasi  rebellion. In this view of the matter, the hymn attacked the Muslim rule of the day and, in the larger context, it was a battle cry for a resurgent Hindu India while challenging the British imperialist rule. It is a
hymn to the goddess Durga, identified as the national personification of Bengal. It came to be considered the "National Anthem of Bengal", and it played a part in the Indian independence movement, first sung in a political context by Rabindranath Tagore at the 1896 session of the Indian
National Congress. In 1950, its first two verses were given the official status of "national song" of the Republic of India, distinct from the national anthem of India “Jana Gana Mana”. Many Muslim organizations in India have protested  against singing Vande Mataram, due to the song giving a notion of worshipping Mother India.


History of Vande Mataram appears to be indeed diversified and highly unlikely, when one considers the time when it was written. It generally took ages for such kind of a song or prose or verse to achieve wide acceptance. It is normally believed that the concept of Vande Mataram dawned on Bankim Chandra Chatterjee when he was still serving as a government official under the British Empire. He wrote the song in a great way, making use of words from Sanskrit and Bengali, two
201101039

languages in which he excelled. However, the song was met with intense initial criticism, due to the obscurity in pronunciation of some of the words.Thus by this Vandemataram really brings once pride towards it’s nation.

Jan-Gan-Man

Jana Gana Mana is the national anthem of India. Initially it was first sung at the meeting of Indian National Congress in 1911 end. The song is written mainly in Bengali and Sanskrit language.
Jana Gana Mana was written by Rabindranath Tagore in honor of King George V and the Queen of England when they visited India in 1919. To honor their visit Pandit Motilal Nehru had the five stanzas included , which are in praise of the King and Queen.(And most of us think it is in the praise of our great motherland!)
In the original Bengali verses only those provinces like  Punjab, Sindh, Gujarat, Maratha etc. were mentioned. None of the states like Kashmir, Rajasthan, Andhra, Mysore or Kerala were included.
Neither the Indian Ocean nor the Arabian Sea was included. The Jana Gana Mana Adhinayaka implies that King George V is the lord of the masses and Bharata Bhagya Vidhata is ‘the best ower of good fortune’.
The anthem means (Indian) People wake up remembering your good name and ask for your blessings and they sing your glories. People of all religions come  around your throne and give their love and anxiously wait to hear your kind words. In the whole poem it describes about all  the places of India and also the sacred rivers and mountains . It also describes about the ocean and the high rise waves. But the poem also depicts the people’s respect towards the others and how they respond although they had faced a lot of problems from the british .

This whole poem does not indicate any love for the Motherland but depicts a bleak picture. Nehru chose the present national anthem as opposed to Vande Mataram because he thought that it would be easier for the band to play.It was an absurd reason but Today for that matter bands have advanced and they can very well play any music. So they can as well play Vande Mataram, which is a far better composition in praise of our Dear Motherland India.
Although the people in India at present don’t consider king George instead they think about the mother land and wordhip it and praise the motherland about the richness and it’s importance. People are still unaware about the true maning of the anthem and theydont know much history about the National Anthem. But people think that we remember  our motherland  and  ask for blessings as it is very spiritual. Moreover it does explain us about the Indian heritage and the various vegetations of our country.In the anthem we dedicate to mother land and give respect as it is the true


Thus from the above all we can conclude that from the two songs Vandemataram and Jana gana mana ;the national song really depicts the Indian culture and vivdly describes diffent aspects of India in a different way. While in the National Anthem Jana gana mana it is more to honour the motherland and it describes about the Indian heritage and much more.




Friday 9 September 2011

Sita Sings the Blues


                                                             Sita Sings The Blues 

                                           
The movie Sita Sings the blues is clearly a modern day description of the great epic Ramayana. It clearly gives insight to the people those who have don’t have much knowledge about Ramayana. In the movie it cleverly explains about the different characters of the epic. The story tells the different incidents of the Ramayana and deeply explains about its aspects. Moreover it makes us understand real meaning and virtue of the epic. Also  as in the movie there are different questions asked it becomes more easy and clear view of Ramayana  and can be understood properly. Ramayana has remained a vital story through the present time in India, and is widely accepted as a religious text among Hindus.Ramayana is an epic which makes us inspire by the moral, social, spiritual values,  virtues, respect and many more good qualities.

 Also in the epic it describes about the love towards their beloved and respect of the elders which is necessary in life. The story of Rama teaches us the threefold Dharma pertaining to the individual, the family and the society. The story of the Ramayana reveals the ideal relationship that should exist between brothers. Lakshmana and Satrughna served Rama and Bharata respectively with utmost devotion and sincerity. When Lakshmana fainted in the battlefield, Rama lamented, "In this world I might find another mother like Kausalya, a wife like Sita, but definitely not a brother like Lakshmana." A brother should be like this - one who respects elders and brings name and fame to the whole family. It is the unity amongst the brothers that brought reputation to the whole family.Also from the Ramayana we can know how to live one’s life and various other virtues. In it we can take the lesson of Lord Rama who respected his parents and used to agree with the decisions taken by their parents although it was not in his favour which showed the importance of parent and respect towards them. It also describes us about how he followed the order given by his parents for 14 years vanvaas which showed the courtesy towards the elders. It shows our culture, our traditions and heritage of pure ethics and hallowed principles. As Rama had gone for vanvaas during which Sita was kidnapped by Ravana and then the whole story about love, envy, faith arrived. Ravana took Sita to his palace but the great part of it was that he did not even touched Sita and just requested her to marry him. But Sita remained very loyal to his husband Rama and had faith in Rama that he would surely come to save him.Although the place was very far Rama sent Hanuman to bring Sita back but Sita  refused to come and told Rama itself should come. So Rama decided to bring Sita and for that he had to cross  the ocean which was very large. So Hanuman decided to help him and he made a bridge connecting the palace of Ravan. Rama asserts his dedication to dharma when he undertakes to offer Ravana a final chance to make peace, despite his heinous actions and patronage of evil, by immediately returning Sita and apologizing to both Rama and Sita, but Ravana refuses. In the war, Rama slays the most powerful rakshasa commanders, including Prahasta, Atikaya , etc. He outfights Ravana in their first battle, destroying his chariot and weapons, and severely injuring him, but due to this, he allows him to live and return to fight another day. Atlast Rama engages Ravana, who through the devastation of losing his sons, his brothers and friends and millions of his warriors, arouses his awesome and magical powers and makes full use of the boons of Siva and Brahma, and the magical knowledge of warfare possessed by the greatest of rakshasas. Rama and Ravana compete fiercely, inflicting severe injuries on one another with the most powerful weapons that could destroy the universe. After a long and arduous battle, Rama successfully decapitates Ravana's central head, but an ugly head, symbolic of all of Ravana's evil powers arises in its place. Rama worships Lord Aditya, the Sun, with the famous Aditya Hridayam prayer and then invokes Prasvapna. Rama fires the great arrow that enters Ravana's chest/stomach and evaporates the store of amrit, finally killing him.


Thus by this epic we can know that our ethics are really important in one’s life and by understanding them properly we can win the race of life.Hence Ramayan is famous all over the world due to the ethics and the great virtues hidden in it.