Questions

Q:

Can I increase the size of a dynamically allocated array? < Yes / No> if yes, how?

Answer

Yes, using the realloc() function as shown below:


main()


{


        int *p;


        p = ( int *) malloc (20) ;


        t = p;


        t = (int *) realloc ( p, 40);


        if ( t == NULL )


        Printf (" Cannot reallocate, leaves previous allocated region unchanged ");


       else


       {


              if ( p ==t )


              ;  / * the array expanded at the same region */


             else


            { 


                 free ( p ); / * deallocate the original array */


                 p = t;  /* set p to newly allocated region */


             }


      }


}  

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 4040
Q:

Hydroplaning is usually caused by

A) Excessive speed B) Sudden stops
C) Sudden turns D) All of the above
 
Answer & Explanation Answer: A) Excessive speed

Explanation:

Hydroplaning is caused by a combination of standing water on the road, car speed, and under-inflated or worn-out tires.

Hydroplaning_is_usually_caused_by1558074712.jpg image

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

0 4040
Q:

Pulitzer prize winners are selected by the Pulitzer prize Board and announced by the president of the

A) New York University B) Columbia University
C) Wesleyan University D) Cambridge university
 
Answer & Explanation Answer: B) Columbia University

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 4040
Q:

A particle which is four times in mass and two times in charge that of proton is

A) helium atom B) an alpha particle
C) deuteron D) tritium
 
Answer & Explanation Answer: B) an alpha particle

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

7 4037
Q:

Who has been named as president for its India and SAARC operations by Tech giant Cisco ?

A) Sameer Garde B) Ravi Prakash
C) Vyas Garg D) Ravi Mittal
 
Answer & Explanation Answer: A) Sameer Garde

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

7 4035
Q:

Who is the Author of the book An Unknown Indian?

A) Nirodh C.Chowdhary B) Leo Tolstoy
C) G. B. Shaw D) Mala Sen
 
Answer & Explanation Answer:

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

4 4035
Q:

Who has become the first Asian to be chosen for the prestigious "Von Hippel Award" ?

A) Charles Lieber B) Marvin Cohen
C) C.N.R Rao D) Stuart Parkin
 
Answer & Explanation Answer: C) C.N.R Rao

Explanation:

The Von Hippel Award, the Materials Research Society's highest honor, recognizes those qualities most prized by materials scientists and engineers—brilliance and originality of intellect, combined with vision that transcends the boundaries of conventional scientific disciplines. The Von Hippel Award is named after Arthur von Hippel (1898-2003), who was a pioneer in the study of dielectrics, semiconductors, ferromagnetics and ferroelectrics.

Eminent Scientist and Bharat Ratna Prof C.N.R. Rao was awarded 2017 Von Hippel Award. He is first Indian and first Asian to win this honour. The award will be presented to Prof Rao for his interdisciplinary contributions to development of novel functional materials, including nanomaterials, graphene, superconductivity, 2D materials and colossal magnetoresistance at Boston in November 2017.

Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

11 4033
Q:

Rearrange the parts of the sentence in correct order.

The government should

P : provide health insurance

Q : to buy their own

R : for those unable

A) PQR B) RPQ
C) QRP D) PRQ
 
Answer & Explanation Answer: D) PRQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 4033