Sunday, March 30, 2014

to be happy

 सुखी होने के दस उपाय। .......... 


१. काम में सदैव  व्यस्त रहो। 

२. अपनी क्षमता को पहिचानो। 

३. कभी कभी न बोलना भी सीखो। 

४. अपनी गलती स्वीकार करो। 

५. व्यवहारीक  बनो। 

६. सबको राय लेकर निर्णय लो। 

७. आए से जादा ख़र्च न करो। 

८. गहराई  से सोचो फिर बोलो। 

९. प्रतिक्षा  में धीरज रखो। 

१०. सबको सम्मान से बुलाओ। 

 

दुखी होने के दस कारण। ………………


१. देरी  से सोना और देरी से उठाना।
 

२.कोई  भी काम समय से न करना। 

३. किसीका भी विशवास न करना। 

 ४. सव्य  की  बात को ही सत्य बताना। 

५. कीसीके लिए कुछ  न करना। 

६. हमेशा सव्य  के लिए ही सोचना। 

७. लेन देन  का हिसाब ना रखना। 

८. बिना कारन झ़ुठ बोलना। 

९. बिना मांगे सलाह देना। 

१०. भुतकाल  के  सुख  को बहुत याद  करना। 
 

Pointers and void pointer and precedence of & and * operators in pointers.

Pointers
Definition:- A pointer is a variable that stores the memory address of another another variable.

void pointer :-( it can contain address of any data type )
syntax:-    void *pointer_name;
example:- void *v_ptr;
A void pointer does not have any data-type associated it with and can contain the address of any type of variable.
example:- void v_ptr;
                char ch;
                 int i;
                 float fvar;
                 v_ptr= &ch;
                 v_ptr= &i;
                 v_ptr =&fvar;

Precedence of & and * operator:-
Both are unary operators and have precedence equal to other unary operators.
Their associativity is from right to left.
example:-   int n=10,++*ptr;
                  ptr = &n;
                  ptr = 1024
                 
                   ++ *ptr =  ++(1024)
                                = ++(10)
                                = 11
  
                   *ptr++  = (*1024)++
                                =10 ++
                                =10

                    * ++ptr = *(++1024)
                                 = *(1026)
                                 = data at 1026


Featured posts

Ethiopian culture calendar language

Ethiopian culture, calendar, language  The Ethiopian language, specifically Amharic , uses a script called Ge'ez script . It consists of...

Popular posts