Sunday, April 13, 2014

Call Centers oF PATNA, BIHAR


पटना मे 2 या 3 कॉल सेंटर है , और इन सबका inside decoration इतना अच्छा होता है की सभी लोगो को ये एहसास होता है की पटना भी मुंबई हो गई है और ये कोई बहोत बरी multinational company hai. और ये सभी ताम – झाम युवाओ को गुमराह करने के लिए होता है . Training नाम पर कंपनी वाले सभी लोगो का एक महीने का salary खा जाते है , नेताओ की तरह झूठी वादा और सपने दिखाकर ये सभी new hiring को बेवकूफ बनाते है. Training ke baad ye sabhi employers ko Rs. 3500 se Rs. 4200 तक का महिना देते है . सप्ताह मे एक दिन की छुट्टी मिलती है , और इन सबका working timing 9 hours ka shift hota hai. 1 hour lunch break ka hota hai लेकिन 20 मिनट से ज्यादा का ब्रेक नई देते है ।
Call center me call ka flow इतना ज्यादा होता है की एक कॉल ख़त्म होने बाद दूसरा कॉल 3 सेकंड मे आ जाता है । That call suck their mind. और ये सभी company c.c.e. ( Customer Care Executives ) ke post par hiring karta hai. And finally 9 घंटे की शिफ्ट के बाद ये c.c.e. इतना थक जाते है की , ना तो ये कुछ सोचने की condition मे होती है और न ही कुछ करने की । ऑफिस मे जॉब कॉल लेते है तो कस्टमर की गाली सुननी परती और शिफ्ट ख़त्म होने के बाद अपने senior की सुनना परता है । और salary ke naam par sirf Rs. 3200 ya Rs. 3500 मिलता है ।
1.   पटना मे पहला कॉल सेंटर Call2Connect private Ltd. Hai, Add- 3rd floor, suprabhat Building CEAT Compound, Exhibition Road me hai.
2.   2nd call center AA Infotech , Dakbanglow Road, shahi complex, opposite N.P. Center hai.
3.   FSL – First Source private Ltd. Hai, jo 7th aur 8th floor, Sai corporate Park, Rukanpura, Bailey Road, Patna – 800014 मे है,
     और अगर आपको मेरी बातो पर trust नई है तो , छुट्टी के बाद किसी भी एजेंट (C.C.E.) के लेवल के किसी भी employee से आप साइड मे बुलाकर पूछ सकते है ।
ये सभी ऑफिस मे सीनियर ऑफिसर C.C.E. level के लरको को promotion का लालच देकर  उनसे पैसा लेते है, और फिर कभी लौटते भी नहीं है । ये 3 – 4 कंपनी हजारो युवाओ का भविस्य ख़त्म कर रहे है .
एन सब के कारण पटना के BSNL , CALL  Center जो sparsh ke through chal raha tha, jo ki new punai chauk, B.S.E.B. colony me मजबूरी मे आकार जब पानी सर से ऊपर चला गया तो आधी रात को पूरे कॉल सेंटर को तोर – फोर कर दिया जिसके कारण काफी दिनो तक BSNL CALL Center परा था , उसके बाद शर्म के कारण sparsh company ne apna naam change kar ke serco rakh liya, और अभी BSNL का CALL CENTER ABHI AA INFOTECH Out sourcing  kar rahi hai jo shahi complex me hai , Opp- N.p. center me chal raha hai. ना जाने किउ ये सभी कंपनी युवाओ के लाइफ को बर्बाद कर रहे है !

Saturday, April 5, 2014

Black Marketing of banned medicines

सरकार के द्वारा नशीली दवाओ को रोक लगाने के बाबजूद भी आज भी राजबंशी नगर के मार्केट न०.- 2HARSH MEDICAL HALL में खुलेआम एन दवाओ की BLACK MARKETING की जा रही है और युवाओ को DRUGS, जैसे नशीली दवाओ की कभी न छुटने वाले आदत लगा रहे है.
17 रु० की दवाओ को तकरीबन 40 रु० 50 रु० में बेचा जाता है , और ये नशीली दवाओ खतरनाक DRUGS का एक रूप है, उसे युवा और बहोत सारे पुलिस वाले भी रोजाना खरीदते है क्योकि इन दवाओ का लत एक बार लग गई तोह इसको छोरना बहोत मुश्किल बात होती है. और सबसे बड़ी बात ये है की इन दुकानदारों के पास इस तरह की medicine बेचने का license भी नहीं होता है |
Spasmo proxyvone , aur nitrosun10 ये दो प्रमुख नाम है जिसकी खुलेआम कालाबाजारी की जा रही है | और सबसे बरी बात ये है की इस दुकानदार का संपर्क नकली दवाई बनने वाली गिरोह से भी है जहा से इनको ये दवाए आसानी से मिल जाती है जिस पर सरकार ने रोक लगा रखा है . और इन सब बातो का साबुत मेरे मोबाइल में उपलब्ध है है | Drug Inspector भी इस कोई कारवाई नहीं करेंगे , क्युकी उनको भी उनका हिस्सा मिलता रहता है .
------------------------------------------------------------------------------------
Government ke banned karne ke baad v Rajvanshi Nagar, Market no. 2 , Harsh Medical Hall me khuleaam nashili medicines ki black marketing ki jaa rahi hai, aur youngsters ko kavi na chutne wali en Drugs ki aadat lagakar kar ye medical shop openly Law ko break kar rahe hai. Jaha par ye medical shop hai , woha se ¼ K.m. ki doori par shastrinagar police station hai, bt as usal corruption k karan ye police wale bhi koi action nahi lete, qki enko enka hissa mil jata hai.
Rs. 17 ki medicine ko Rs. 40 se Rs. 50 tak me becha jata hai , aur ye nashili dawaye jo ki Drugs ki ek roop hai, ye itni dangerous hai, ek baar wine ki aadat chhut sakti hai, but en drung ki nahi, aur jo log, ye medicines use karte hai, wo en din me 20 se 25 tablet aasani se kha lete hai, na jaane avi tak kitno ki family barbaad ho chuki hai aur kitne ki youngsters ki family ko pata v nai, qki ye wine ki tarah smell nai karta.
En medicines me spasmo proxyone plus aur nitrosun10 subse aage hai, jiski black marketing HARSH MEDICAL HALL se ho rahi hai, qki Govt. se banned ki jaane ke baad ye medicine kisi aur medical shop me available nahi hoti hai. Aur es medical shop ka contact duplicate medicines banana walo se v hai, jaha se ye banned medicine v easily le kar aa jate hai. 
And I have some evidence in my cell fone.

Tuesday, March 19, 2013

Hon'ble C.M. of Bihar



This Sunday in Raam leela maidaan delhi me jo kuch hua, and what ever told the C.M. of Bihar, now we can't trust on him. enke speech se yehi pata chalta hai ki ye apne fayde k liye kavi v Bihar ki Public ko dhokha de sakte hai. Avi ye B.J.P.  k saath hai, but 2014 k election k baad ye apne fayde k liye congress ya fir kisi v party support kar sakte hai, aur B.J.P. ko cheat v.
sayad Avi ye bhool gaye hai, ki jub ye first time govt. me aaye toh B.J.P. k karan, aur ub ye kavi v , kisi v party ko double cross kar sakte hai.
May be Very soon we will the the new chemistry . ye v ub bol bachan ho gaye hai.



नई दिल्ली [आशुतोष झा]। महज झलक दिखाकर बिहार के मुख्यमंत्री नीतीश कुमार ने आधी बाजी जीत ली। दिल्ली के रामलीला मैदान में हुई विशाल रैली से नीतीश गरजे तो विशेष राज्य के दर्जे की मांग पर केंद्र ने भी नरम रुख दिखा दिया। बिहार के बहाने नीतीश ने दूसरे पिछड़े राज्यों का नेतृत्व भी खुद ही संभाल लिया। साथ ही इशारों-इशारों में दिल्ली और कांग्रेस सरकार को बिहार की ताकत का भी अहसास करा गए। दिल्ली के विधानसभा चुनाव से पहले उनकी हुंकार खासी अहम मानी जा रही है। उन्होंने कहा कि अगर बिहार के लोग एकजुट हो गए तो दिल्ली उनकी मुट्ठी में होगी।
रविवार को रामलीला मैदान एक अलग तरह की रैली का गवाह बना। 70-80 हजार की भीड़ में नीतीश कुमार को प्रधानमंत्री बनाने के छिटपुट नारे जरूर लगे, लेकिन मुख्य नारा था बिहार को विशेष राज्य का दर्जा दिलाने का। सधे हुए राजनीतिज्ञ नीतीश कुमार बोलने खड़े हुए तो बारीकी से राजनीतिक बढ़त बनाने से भी नहीं चूके। प्रचीन गौरव की याद दिलाते हुए नीतीश ने बिहारी अस्मिता की बात की तो दिल्ली सरकार को भी आगाह कर दिया कि देश की राजधानी में उनकी ताकत को पहचानें और उन्हें अच्छी जिंदगी जीने का हक दें। वरना यह न भूलें कि अगर वह इकट्ठे हो गए तो दिल्ली उनके हाथ में होगी।
गौरतलब है कि नवंबर में दिल्ली विधानसभा चुनाव होने हैं। बिहार के पिछड़ेपन और संसाधन की कमी का हवाला देते हुए उन्होंने कहा कि इसके बावजूद पिछले सात साल में राज्य बढ़ा है। विकास दर अच्छी है और इसका गुणगान प्रधानमंत्री व वित्तमंत्री भी कर चुके हैं, लेकिन बिहार इतने से संतुष्ट नहीं है। बिहार में शक्ति है, अब उसे संसाधन मुहैया कराना केंद्र का काम है। बदले में बिहार देश के विकास की राह तैयार करेगा। लिहाजा कोई इसे भीख न समझे, यह बिहार का हक है।
थोड़ा आक्रामक होते हुए उन्होंने कहा, 'केंद्र की ओर से बिहार की मांगों के प्रति थोड़ा अच्छा रुख दिखा है, लेकिन बात इतने से नहीं बनेगी। अगर हक पूरा नहीं हुआ तो फिर पूरी लड़ाई बाकी है।' रैली खत्म होने के बाद ही प्रधानमंत्री कार्यालय में राज्यमंत्री राजीव शुक्ला ने मांगों के प्रति नरम रुख जताकर नीतीश की ओर कांग्रेस के बढ़ते कदम का संकेत दे दिया। माना जा रहा है कि सोमवार को जब नीतीश प्रधानमंत्री मनमोहन सिंह और वित्तमंत्री पी. चिदंबरम से मिलेंगे तो बात कुछ आगे बढ़ेगी।

Tuesday, January 15, 2013

terrorist


पाक सैनिकों के घुसपैठ कर दो भारतीय सैनिकों का गला रेतने की घटना को अक्षम्य अपराध करार देते हुए शीर्ष सेना नेतृत्व ने स्पष्ट कर दिया है कि भारत उकसावे की ऐसी किसी भी कार्रवाई का मुंहतोड़ जवाब देगा। but sawal ye nahi hai ki jawab dega aur nahi , sawal ye hai ki kub dega, सेना प्रमुख जनरल बिक्रम सिंह ke Retirement k baad Ya next Election k baad. ? You will only Bark or You will do something.. ?? ...!!  Paakistaan hume humare ghar me ghus kr maar raha hai, 2 ka to sar v le gaye, but aap safe ho, sayad ye smile esiliye hai.. do something, Aur agar aapko Govt. rok rahi hai toh please never forget Public Government banati hai, Aapki Government public nahi banati...

Hope You will do the needfull. Thank You

Tuesday, March 6, 2012

c programing question with solution

1. What is a local block?

A local block is any portion of a C program that is enclosed by the left brace ({) and the right brace (}). A C function contains left and right braces, and therefore anything between the two braces is contained in a local block. An if statement or a switch statement can also contain braces, so the portion of code between these two braces would be considered a local block.

Additionally, you might want to create your own local block without the aid of a C function or keyword construct. This is perfectly legal. Variables can be declared within local blocks, but they must be declared only at the beginning of a local block. Variables declared in this manner are visible only within the local block. Duplicate variable names declared within a local block take precedence over variables with the same name declared outside the local block. Here is an example of a program that uses local blocks:

#include
void main(void);
void main()
{
     /* Begin local block for function main() */
     int test_var = 10;
     printf("Test variable before the if statement: %d\n", test_var);
     if (test_var > 5)
     {
          /* Begin local block for "if" statement */
          int test_var = 5;
          printf("Test variable within the if statement: %d\n",
                 test_var);
          {
               /* Begin independent local block (not tied to
                  any function or keyword) */
               int test_var = 0;
               printf(
               "Test variable within the independent local block:%d\n",
               test_var);
          }
          /* End independent local block */
     }
     /* End local block for "if" statement */
     printf("Test variable after the if statement: %d\n", test_var);
}
/* End local block for function main() */

This example program produces the following output:

Test variable before the if statement: 10

Test variable within the if statement: 5

Test variable within the independent local block: 0

Test variable after the if statement: 10

Notice that as each test_var was defined, it took precedence over the previously defined test_var. Also notice that when the if statement local block had ended, the program had reentered the scope of the original test_var, and its value was 10.

2. Should variables be stored in local blocks?

The use of local blocks for storing variables is unusual and therefore should be avoided, with only rare exceptions. One of these exceptions would be for debugging purposes, when you might want to declare a local instance of a global variable to test within your function. You also might want to use a local block when you want to make your program more readable in the current context.

Sometimes having the variable declared closer to where it is used makes your program more readable. However, well-written programs usually do not have to resort to declaring variables in this manner, and you should avoid using local blocks.

3. When is a switch statement better than multiple if statements?

A switch statement is generally best to use when you have more than two conditional expressions based on a single variable of numeric type. For instance, rather than the code

if (x == 1)
     printf("x is equal to one.\n");
else if (x == 2)
     printf("x is equal to two.\n");
else if (x == 3)
     printf("x is equal to three.\n");
else
     printf("x is not equal to one, two, or three.\n");

the following code is easier to read and maintain:

switch (x)
{
     case 1:   printf("x is equal to one.\n");
                    break;
     case 2:   printf("x is equal to two.\n");
                    break;
     case 3:   printf("x is equal to three.\n");
                    break;
     default:  printf("x is not equal to one, two, or three.\n");
                    break;
}

Notice that for this method to work, the conditional expression must be based on a variable of numeric type in order to use the switch statement. Also, the conditional expression must be based on a single variable. For instance, even though the following if statement contains more than two conditions, it is not a candidate for using a switch statement because it is based on string comparisons and not numeric comparisons:

char* name = "Lupto";
if (!stricmp(name, "Isaac"))
     printf("Your name means 'Laughter'.\n");
else if (!stricmp(name, "Amy"))
     printf("Your name means 'Beloved'.\n ");
else if (!stricmp(name, "Lloyd"))
     printf("Your name means 'Mysterious'.\n ");
else
     printf("I haven't a clue as to what your name means.\n");

4. Is a default case necessary in a switch statement?

No, but it is not a bad idea to put default statements in switch statements for error- or logic-checking purposes. For instance, the following switch statement is perfectly normal:

switch (char_code)
{
     case 'Y':
     case 'y': printf("You answered YES!\n");
               break;
     case 'N':
     case 'n': printf("You answered NO!\n");
               break;
}

Consider, however, what would happen if an unknown character code were passed to this switch statement. The program would not print anything. It would be a good idea, therefore, to insert a default case where this condition would be taken care of:

...
     default:  printf("Unknown response: %d\n", char_code);
               break;
...

Additionally, default cases come in handy for logic checking. For instance, if your switch statement handled a fixed number of conditions and you considered any value outside those conditions to be a logic error, you could insert a default case which would flag that condition. Consider the following example:

void move_cursor(int direction)
{
     switch (direction)
     {
          case UP:     cursor_up();
                       break;
          case DOWN:   cursor_down();
                       break;
          case LEFT:   cursor_left();
                       break;
          case RIGHT:  cursor_right();
                       break;
          default:     printf("Logic error on line number %ld!!!\n",
                               __LINE__);
                       break;
     }
}
***************************************************************************************
5. Can the last case of a switch statement skip including the break?

Even though the last case of a switch statement does not require a break statement at the end, you should add break statements to all cases of the switch statement, including the last case. You should do so primarily because your program has a strong chance of being maintained by someone other than you who might add cases but neglect to notice that the last case has no break statement.

This oversight would cause what would formerly be the last case statement to "fall through" to the new statements added to the bottom of the switch statement. Putting a break after each case statement would prevent this possible mishap and make your program more "bulletproof." Besides, most of today's optimizing compilers will optimize out the last break, so there will be no performance degradation if you add it.

6. Other than in a for statement, when is the comma operator used?

The comma operator is commonly used to separate variable declarations, function arguments, and expressions, as well as the elements of a for statement. Look closely at the following program, which shows some of the many ways a comma can be used:

#include
#include
void main(void);
void main()
{
     /* Here, the comma operator is used to separate
        three variable declarations. */
     int i, j, k;
     /* Notice how you can use the comma operator to perform
        multiple initializations on the same line. */
     i = 0, j = 1, k = 2;
     printf("i = %d, j = %d, k = %d\n", i, j, k);
     /* Here, the comma operator is used to execute three expressions
        in one line: assign k to i, increment j, and increment k.
        The value that i receives is always the rightmost expression. */
     i = (j++, k++);
     printf("i = %d, j = %d, k = %d\n", i, j, k);
     /* Here, the while statement uses the comma operator to
        assign the value of i as well as test it. */
     while (i = (rand() % 100), i != 50)
          printf("i is %d, trying again...\n", i);
     printf("\nGuess what? i is 50!\n");
}

Notice the line that reads

i = (j++, k++);

This line actually performs three actions at once. These are the three actions, in order:

1. Assigns the value of k to i. This happens because the left value (lvalue) always evaluates to the rightmost argument. In this case, it evaluates to k. Notice that it does not evaluate to k++, because k++ is a postfix incremental expression, and k is not incremented until the assignment of k to i is made. If the expression had read ++k, the value of ++k would be assigned to i because it is a prefix incremental expression, and it is incremented before the assignment is made.

2. Increments j.

3. Increments k.

Also, notice the strange-looking while statement:

while (i = (rand() % 100), i != 50)
     printf("i is %d, trying again...\n");

Here, the comma operator separates two expressions, each of which is evaluated for each iteration of the while statement. The first expression, to the left of the comma, assigns i to a random number from 0 to 99.

The second expression, which is more commonly found in a while statement, is a conditional expression that tests to see whether i is not equal to 50. For each iteration of the while statement, i is assigned a new random number, and the value of i is checked to see that it is not 50. Eventually, i is randomly assigned the value 50, and the while statement terminates.

7. How can you tell whether a loop ended prematurely?

Generally, loops are dependent on one or more variables. Your program can check those variables outside the loop to ensure that the loop executed properly. For instance, consider the following example:

#define REQUESTED_BLOCKS 512
int x;
char* cp[REQUESTED_BLOCKS];
/* Attempt (in vain, I must add...) to
   allocate 512 10KB blocks in memory. */
for (x=0; x< REQUESTED_BLOCKS; x++)
{
     cp[x] = (char*) malloc(10000, 1);
     if (cp[x] == (char*) NULL)
          break;
}
/* If x is less than REQUESTED_BLOCKS,
   the loop has ended prematurely. */
if (x < REQUESTED_BLOCKS)
     printf("Bummer! My loop ended prematurely!\n");

Notice that for the loop to execute successfully, it would have had to iterate through 512 times. Immediately following the loop, this condition is tested to see whether the loop ended prematurely. If the variable x is anything less than 512, some error has occurred.

8. What is the difference between goto and long jmp( ) and setjmp()?

A goto statement implements a local jump of program execution, and the longjmp() and setjmp() functions implement a nonlocal, or far, jump of program execution. Generally, a jump in execution of any kind should be avoided because it is not considered good programming practice to use such statements as goto and longjmp in your program.

A goto statement simply bypasses code in your program and jumps to a predefined position. To use the goto statement, you give it a labeled position to jump to. This predefined position must be within the same function. You cannot implement gotos between functions. Here is an example of a goto statement:

void bad_programmers_function(void)
{
     int x;
     printf("Excuse me while I count to 5000...\n");
     x = 1;
     while (1)
     {
          printf("%d\n", x);
          if (x == 5000)
               goto all_done;
          else
               x = x + 1;
     }
all_done:
     printf("Whew! That wasn't so bad, was it?\n");
}

This example could have been written much better, avoiding the use of a goto statement. Here is an example of an improved implementation:

void better_function(void)
{
     int x;
     printf("Excuse me while I count to 5000...\n");
     for (x=1; x<=5000; x++)
          printf("%d\n", x);
     printf("Whew! That wasn't so bad, was it?\n");
}

As previously mentioned, the longjmp() and setjmp() functions implement a nonlocal goto. When your program calls setjmp(), the current state of your program is saved in a structure of type jmp_buf. Later, your program can call the longjmp() function to restore the program's state as it was when you called setjmp(). Unlike the goto statement, the longjmp() and setjmp() functions do not need to be implemented in the same function.

However, there is a major drawback to using these functions: your program, when restored to its previously saved state, will lose its references to any dynamically allocated memory between the longjmp() and the setjmp(). This means you will waste memory for every malloc() or calloc() you have implemented between your longjmp() and setjmp(), and your program will be horribly inefficient. It is highly recommended that you avoid using functions such as longjmp() and setjmp() because they, like the goto statement, are quite often an indication of poor programming practice.

Here is an example of the longjmp() and setjmp() functions:

#include
#include
jmp_buf saved_state;
void main(void);
void call_longjmp(void);
void main(void)
{
     int ret_code;
     printf("The current state of the program is being saved...\n");
     ret_code = setjmp(saved_state);
     if (ret_code == 1)
     {
          printf("The longjmp function has been called.\n");
          printf("The program's previous state has been restored.\n");
          exit(0);
     }
     printf("I am about to call longjmp and\n");
     printf("return to the previous program state...\n");
     call_longjmp();
}
void call_longjmp(void)
{
     longjmp(saved_state, 1);
}
*************************************************************************************
9. What is an lvalue?

An lvalue is an expression to which a value can be assigned. The lvalue expression is located on the left side of an assignment statement, whereas an rvalue is located on the right side of an assignment statement. Each assignment statement must have an lvalue and an rvalue. The lvalue expression must reference a storable variable in memory. It cannot be a constant. For instance, the following lines show a few examples of lvalues:

int x;
int* p_int;
x = 1;
*p_int = 5;

The variable x is an integer, which is a storable location in memory. Therefore, the statement x = 1 qualifies x to be an lvalue. Notice the second assignment statement, *p_int = 5. By using the * modifier to reference the area of memory that p_int points to, *p_int is qualified as an lvalue. In contrast, here are a few examples of what would not be considered lvalues:

#define CONST_VAL 10
int x;
/* example 1 */
1 = x;
/* example 2 */
CONST_VAL = 5;

In both statements, the left side of the statement evaluates to a constant value that cannot be changed because constants do not represent storable locations in memory. Therefore, these two assignment statements do not contain lvalues and will be flagged by your compiler as errors.

10. Can an array be an lvalue?

Is an array an expression to which we can assign a value? The answer to this question is no, because an array is composed of several separate array elements that cannot be treated as a whole for assignment purposes. The following statement is therefore illegal:

int x[5], y[5];

x = y;

You could, however, use a for loop to iterate through each element of the array and assign values individually, such as in this example:

int i;
int x[5];
int y[5];
...
for (i=0; i<5; i++)
     x[i] = y[i]
...

Additionally, you might want to copy the whole array all at once. You can do so using a library function such as the memcpy() function, which is shown here:

memcpy(x, y, sizeof(y));

It should be noted here that unlike arrays, structures can be treated as lvalues. Thus, you can assign one structure variable to another structure variable of the same type, such as this:

typedef struct t_name
{
     char last_name[25];
     char first_name[15];
     char middle_init[2];
} NAME;
...
NAME my_name, your_name;
...
your_name = my_name;
...

In the preceding example, the entire contents of the my_name structure were copied into the your_name structure. This is essentially the same as the following line:

memcpy(your_name, my_name, sizeof(your_name));

11. What is an rvalue?

rvalue can be defined as an expression that can be assigned to an lvalue. The rvalue appears on the right side of an assignment statement.

Unlike an lvalue, an rvalue can be a constant or an expression, as shown here:

int x, y;
x = 1;               /* 1 is an rvalue; x is an lvalue */
y = (x + 1);         /* (x + 1) is an rvalue; y is an lvalue */

An assignment statement must have both an lvalue and an rvalue. Therefore, the following statement would not compile because it is missing an rvalue:
int x; x = void_function_call() /* the function void_function_call() returns nothing */

If the function had returned an integer, it would be considered an rvalue because it evaluates into something that the lvalue, x, can store.

12. Is left-to-right or right-to-left order guaranteed for operator precedence?

The simple answer to this question is neither. The C language does not always evaluate left-to-right or right-to-left. Generally, function calls are evaluated first, followed by complex expressions and then simple expressions.

Additionally, most of today's popular C compilers often rearrange the order in which the expression is evaluated in order to get better optimized code. You therefore should always implicitly define your operator precedence by using parentheses.

For example, consider the following expression:

a = b + c/d / function_call() * 5

The way this expression is to be evaluated is totally ambiguous, and you probably will not get the results you want. Instead, try writing it by using implicit operator precedence:

a = b + (((c/d) / function_call()) * 5)

Using this method, you can be assured that your expression will be evaluated properly and that the compiler will not rearrange operators for optimization purposes.
******************************************************************************************
13. What is the difference between ++var and var++?

The ++ operator is called the increment operator. When the operator is placed before the variable (++var), the variable is incremented by 1 before it is used in the expression. When the operator is placed after the variable (var++), the expression is evaluated, and then the variable is incremented by 1.

The same holds true for the decrement operator (--). When the operator is placed before the variable, you are said to have a prefix operation. When the operator is placed after the variable, you are said to have a postfix operation.

For instance, consider the following example of postfix incrementation:

int x, y;
x = 1;
y = (x++ * 5);

In this example, postfix incrementation is used, and x is not incremented until after the evaluation of the expression is done. Therefore, y evaluates to 1 times 5, or 5. After the evaluation, x is incremented to 2.

Now look at an example using prefix incrementation:

int x, y;
x = 1;
y = (++x * 5);

This example is the same as the first one, except that this example uses prefix incrementation rather than postfix. Therefore, x is incremented before the expression is evaluated, making it 2. Hence, y evaluates to 2 times 5, or 10.

14. What does the modulus operator do?

The modulus operator (%) gives the remainder of two divided numbers. For instance, consider the following portion of code:

x = 15/7

If x were an integer, the resulting value of x would be 2. However, consider what would happen if you were to apply the modulus operator to the same equation:

x = 15%7

The result of this expression would be the remainder of 15 divided by 7, or 1. This is to say that 15 divided by 7 is 2 with a remainder of 1.

The modulus operator is commonly used to determine whether one number is evenly divisible into another. For instance, if you wanted to print every third letter of the alphabet, you would use the following code:

int x;
for (x=1; x<=26; x++)
     if ((x%3) == 0)
          printf("%c", x+64);

The preceding example would output the string "cfilorux", which represents every third letter in the alphabet.
------------------------------------------------------------------------------
1.     

What are the different types of real data type in C ?
A.     float, double    B.     short int, double, long int
C.     float, double, long double    D.     double, long int, float
Answer & Explanation

Answer: Option C

Explanation:

The floating point data types are called real data types. Hence float, double, and long double are real data types.
View Answer Online Compiler Report Discuss in Forum
2.     

What will you do to treat the constant 3.14 as a long double?
A.     use 3.14LD    B.     use 3.14L
C.     use 3.14DL    D.     use 3.14LF
Answer & Explanation

Answer: Option B

Explanation:

Given 3.14 is a double constant.

To specify 3.14 as long double, we have to add L to the 3.14. (i.e 3.14L)

View Answer Online Compiler Report Discuss in Forum
3.     

If the binary eauivalent of 5.375 in normalised form is 0100 0000 1010 1100 0000 0000 0000 0000, what will be the output of the program (on intel machine)?

#include
#include
int main()
{
    float a=5.375;
    char *p;
    int i;
    p = (char*)&a;
    for(i=0; i<=3; i++)
        printf("%02x\n", (unsigned char)p[i]);
    return 0;
}

A.     40 AC 00 00    B.     04 CA 00 00
C.     00 00 AC 40    D.     00 00 CA 04
Answer & Explanation

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.
View Answer Online Compiler Report Discuss in Forum
4.     

Which of the following range is a valid long double ?
A.     3.4E-4932 to 1.1E+4932    B.     3.4E-4932 to 3.4E+4932
C.     1.1E-4932 to 1.1E+4932    D.     1.7E-4932 to 1.7E+4932
Answer & Explanation

Answer: Option A

Explanation:

The range of long double is 3.4E-4932 to 1.1E+4932

View Answer Online Compiler Report Discuss in Forum
5.     

Which statement will you add in the following program to work it correctly?

#include
int main()
{
    printf("%f\n", log(36.0));
    return 0;
}

A.     #include    B.     #include
C.     #include    D.     #include
Answer & Explanation

Answer: Option B

Explanation:

math.h is a header file in the standard library of C programming language designed for basic mathematical operations.

Declaration syntax: double log(double);
----------------------------------------------------------------------

1.     

What is (void*)0?
A.     Representation of NULL pointer
B.     Representation of void pointer
C.     Error
D.     None of above
Answer & Explanation

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.
View Answer Online Compiler Report Discuss in Forum
2.     

Can you combine the following two statements into one?

char *p;
p = (char*) malloc(100);

A.     char p = *malloc(100);
B.     char *p = (char) malloc(100);
C.     char *p = (char*)malloc(100);
D.     char *p = (char *)(malloc*)(100);
Answer & Explanation

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.
View Answer Online Compiler Report Discuss in Forum
3.     

In which header file is the NULL macro defined?
A.     stdio.h    B.     stddef.h
C.     stdio.h and stddef.h    D.     stdlib.h
Answer & Explanation

Answer: Option C

Explanation:

The macro "NULL" is defined in locale.h, stddef.h, stdio.h, stdlib.h, string.h, time.h, and wchar.h.
View Answer Online Compiler Report Discuss in Forum
4.     

How many bytes are occupied by near, far and huge pointers (DOS)?
A.     near=2 far=4 huge=4    B.     near=4 far=8 huge=8
C.     near=2 far=4 huge=8    D.     near=4 far=4 huge=8
Answer & Explanation

Answer: Option A

Explanation:

near=2, far=4 and huge=4 pointers exist only under DOS. Under windows and Linux every pointers is 4 bytes long.
View Answer Online Compiler Report Discuss in Forum
5.     

If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?
A.     .    B.     &
C.     *    D.     ->
Answer & Explanation

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

Wednesday, December 28, 2011

Good Morning Bihar


Hello Patna,
Friends there is no doubt that now there is no Jungle Raj in Patna and trough out the Bihar. The Government is giving good response but what you thing " kya sub kuch tik ho raha hai ? kya humlog sahi ja rahe hai " na, not at all. Bahot saari aisi baate hai jiske baare me government ko pata hi nahi chalti, ya fir Government janana hi nahi chahti, Now days Nitish Kumar jagah jagah jakar, Infact wo Bihar ke savi district me jakar " Janta ka darbar me maan niye mukhymantri ka karyakrm" aisa funtction kar rahe hai, It's really very nice, but kya kavi simple insaan ki pukar suni gai jo male hai, aisa nahi hota,  This is the Fact ki agar ek ladka educated hota hai to ek insaan educated hota hai aur agar ek ladki educated hota hai toh pura pariwaar educated hota hai,  same thing, avi aisa hi ho raha hai, Our Hounourable Cheif Minister every district me jaakar direct district magistrate ko directions dete hai, like stop the cut of mountains and all" Result kya hota hai, Print Media me C.M. ka naam with photo aata hai, Dadagiri toh dikha di boss kya kavi socha hai, ek district magistrate ke paas kitne kaam hote hai, aur upar se aajkal to D.M. ka janta darbaar v lagta hai, I think every week, But aapko sayad ye pata nahi hai ki D.M. ke court me lacks of land cases pending pare hai, jis par in a year agar ek baar v D.M. sir ko time mila to court hota hai, warna nahi, Muzaffarpur me ke D. M . Mr. Santosh Mall ke  Court me na jaane kitne cases kai saalo se pending pare hai, enme se ek case hai 7/2007 jisme 3 saal me 4 baar sunbai avi tak hui hai, Mere ko ye samjh me nahi aata ki jub Land ke Regarding saare rights DDC ko de diye gaye hai to D.M. sir ke court me jo v cases Land ke Regarding Pending hai un sub cases ko DDc ke Court me kiu nahi Transfer kiya ja raha hai ? Kya hai ye Judicial System ? Aur ye v rule allready Bihar Government Paas kr chuki hai ki jub DDC ke Order ko Sirf High Court me challenge kiya ja sakta hai to fir q nahi transfer kiya ja raha hai Land Regarding Saare Cases ko.  
This the problem, Media ko dikhane ke liye Law toh bana diya jaate hai but unka follow kitna hota hai ? Pahle M.L.A. ka bol bala tha ub officers ka bol bala hai. 

Thank You
Regards,
Rishi Sinha
rici.com@gmail.com

Friday, October 21, 2011

This world will never forget u


दुनिया को बदलने का श्रेय 3 एपल्स को जाता है। पहले एपल ने ईव को बहकाया, दूसरे ने न्यूटन को रास्ता दिखाया और तीसरा 14 साल तक स्टीव के हाथों में रहा। बिल गेट्स से एक बार किसी ने पूछा कि किस सीईओ से वे ज्यादा प्रभावित हुए हैं तो जवाब था स्टीव जॉब्स। दुनिया को आईमैक, आईपॉड, आईफोन, आईट्यूंस, आईपैड और आईक्लाउड जैसे लोकप्रिय प्रोडक्ट्स देने वाले स्टीव जॉब्स (24 फरवरी, 1955-5 अक्टू. 2011) बाजार के अच्छे रणनीतिकार भी थे और कभी हिम्मत नहीं हारते थे। उनके साथ काम कर चुके केन सीगल का कहना था कि स्टीव ने कभी अपने ऊपर बाजार को हावी नहीं होने दिया क्योंकि वे बाजार पर हावी होने की रणनीति जानते थे।
जॉब्स और एपल : स्टीव जॉब्स ने कभी स्कूली शिक्षा पूरी नहीं की। स्टीव ने केवल एक सेमेस्टर पूरा करने के बाद कॉलेज छोड दिया। 1 अप्रैल, 1976 को सिलिकॉन वैली में पिता के गैराज में कॉलेज के दोस्त स्टीव वोच्नियाक के साथ मिल कर पहला कम्प्यूटर एपल-1 बनाया, जो 666.66 डॉलर में बिका। उसी दौरान उन्हें एक लोकल स्टोर से 50 मशीनों का ऑर्डर आया। पैसे नहीं थे तो एपल कम्प्यूटर कंपनी को फाइनेंस करने के लिए 21 साल के स्टीव ने अपनी फॉक्सवैगन वैन भी बेच दी। कंपनी में जहां जॉब्स सेल्स का काम देखते थे तो वोच्नियाक इंजीनियर की तरह काम करते थे। खुद वोच्नियाक ने भी उनके बारे में कहा था कि शुरुआती दिनों में जब भी मैं कुछ नया डिजाइन करता था तो जॉब्स कहते थे कि चलो बेचते हैं।
एपल-2 व मैक से हिट : एपल-1 सिर्फ शुरुआत था। एपल को कामयाबी दिलाई एपल-2 ने। इसने लोगों के घरों तक पहुंच बनाई। इसकी बिक्री 1978 में 78 लाख और 1980 में बढ कर 1 करोड 17 लाख तक पहुंच गई। उस वक्त स्टीव मात्र 25 साल के थे। उसी साल पहली बार एपल का पब्लिक इश्यू आया। मैक ने एपल-2 की सफलता को भी पीछे छोड दिया। यह पहला पीसी था जिसमें आइकंस और माउस के रूप में ग्राफिक यूजर इंटरफेस (जीयूआई) था। जीयूआई को बाद में माइक्रोसॉफ्ट ने विंडोज में इस्तेमाल करना शुरू कर दिया।
एपल के बाद : 1985 में मात्र 30 साल की उम्र में स्टीव ने एपल को 2 बिलियन डॉलर वाली कपंनी बना दिया। उसी दौरान सीईओ जॉन स्कूले से मनमुटाव के कारण स्टीव ने एपल छोड दिया और नई कंपनी नेक्स्ट कंप्यूटर इंक. बनाई लेकिन 1993 में इसके हार्डवेयर आपरेशंस बंद कर दिए।
एनिमेशन स्टूडियो : एपल से अलग होने के बाद स्टीव ने 1986 में फिल्म डायरेक्टर जॉर्ज लुकास की कंपनी द ग्राफिक्स ग्रुप्स 10 लाख डॉलर में खरीद ली जिसका नाम पिक्सर रखा गया। द टॉय स्टोरी, फांइडिंग नीमो, अ बग लाइफ और मॉन्सटर इंक. जैसी ग्राफिक्स फिल्मों ने उन्हें दोबारा हिट बना दिया।
एपल में वापसी : 1996 में एपल के सीईओ एमेलियो ने नेक्स्ट को 40 करोड में खरीद लिया और 8 माह के भीतर जॉब्स फिर एपल के सीईओ बन गए। 2010 में जॉब्स मात्र 1 डॉलर सैलरी लेते थे।
आईमैक का करिश्मा : 1998 में लॉन्च हुए आईमैक में कम्प्यूटर और मॉनिटर एक ही यूनिट में था। आईमैक ने एपल को एक बार फिर बाजार का सरताज बना दिया। 2007 में कंपनी के रेवेन्यू में अकेले मैक की हिस्सेदारी 43 फीसदी थी।
लोगों से मिली पहचान : 1976 में एपल कंपनी का जो लोगो डिजाइन किया गया उसमें सर इजॉक न्यूटन एक पेड के नीचे बैठे हुए हैं। जिसके बाद कॉरपोरेट लोगो डिजाइनर रॉब जेनोफ ने इंद्रधनुषी रंग वाले एपल का लोगो बनाया। स्टीव ने एपल के लोगो को बाइट के साथ डिजाइन किया ताकि वह सेब खाया हुआ लगे और दूसरे फलों से अलग दिखे। यही लोगो एपल की नई पहचान बन गया।
आई का जादू : एपल की सफलता के पीछे आई शब्द का योगदान है। मई 1998 में मैक का नया अवतार लॉन्च करने की तैयारी थी। स्टीव उसे मैक से जोडना चाहते थे क्योंकि मैक्निटॉश फैमिली का था। इसी दौरान स्टीव ने आई शब्द लगाने का सुझाव दिया। स्टीव का तर्क था कि यह मशीन इंटरनेट के लिए डिजाइन की गई है।
भारत से प्यार : स्टीव कहते थे उस क्षण को वह कभी नहीं भूल पाएंगे जब उन्होंने कॉलेज छोडने का फैसला किया। वह दोस्तों के साथ जमीन पर सोते थे और रविवार को दोस्तों के साथ 11 किमी पैदल चल कर खाने के लिए हरे कृष्णा मंदिर आया करते थे। भारतीय अध्यात्म में स्टीव की गहरी रुचि थी। 18 साल की उम्र में 1974 में स्टीव अपने दोस्त देन कोटके साथ आध्यात्मिक ज्ञान की तलाश में भारत आए थे। कैंची स्थित नीम करोली बाबा के आश्रम में जाकर अध्यात्मवाद और अस्तित्ववाद का ज्ञान लेना चाहते थे। लेकिन बाबा के निधन के बारे में जान वे वापस लौट गए। वे जब अमेरिका लौटे तो बौद्ध बन कर। उन्होंने सिर मुंडवा लिया था और पारंपरिक भारतीय वस्त्र पहनने शुरू कर दिए थे। पूर्ण रूप से शाकाहारी बन चुके थे।