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 4660
Q:

An instrusion of magma along a bedding plane is called a

A) Dyke B) Still
C) Batholith D) Laccolith
 
Answer & Explanation Answer: C) Batholith

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 4660
Q:

The first lady to receive the Dadasaheb Phalke Award was

A) Nargis Dutt B) Savitri Ganesh
C) Devika Rani Roerich D) Dina Pathak
 
Answer & Explanation Answer: C) Devika Rani Roerich

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

3 4659
Q:

Fiscal Policy is concerned with

A) Government Spending and Taxation B) Money Supply
C) Government Spending, Money Supply and Taxation D) Taxation
 
Answer & Explanation Answer: A) Government Spending and Taxation

Explanation:

The two most widely recognized tools used to influence a Nation's Economic activity are Monetary policy and Fiscal policy.

 

    • Monetary policy is primarily concerned with the management of interest rates and the total supply of money in circulation and is generally carried out by central banks

 

    • Fiscal policy is the collective term for the taxing and spending actions of governments.

 

Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: CAT , Bank Exams
Job Role: Bank PO , Bank Clerk , Analyst

13 4658
Q:

A colour blind person has difficulty in distinguishing which of the two colours ?

A) Green & Red B) White & Red
C) Blue & Red D) Red & Black
 
Answer & Explanation Answer: A) Green & Red

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

20 4657
Q:

Dry ice is nothing but

A) Solid carbon dioxide B) Baking soda
C) Gaseous carbon dioxide D) Carbon monoxide
 
Answer & Explanation Answer: A) Solid carbon dioxide

Explanation:

dry-ice1531812120.jpg image

 

Dry ice is solid form of carbon dioxide, used as a cooling agent.

 

It lower temperature than that of water ice and not leave any residue.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

5 4654
Q:

Give the iupac name for the following compound?

che1530787063.jpg image

A) Sec-Butylcyclohexine B) Isopropylcyclohexane
C) 2-Cyclohexybutane D) None of the above
 
Answer & Explanation Answer: B) Isopropylcyclohexane

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

3 4652
Q:

Which of the following is a legal requirement for PFDs?

A) PFDs must be properly sized for the intended wearer. B) Must be in good, serviceable condition.
C) Sizing for PFDs is based on body weight and chest size. D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

PFD's : Personal Flotation Devices (life jackets).

 

It is a legal requirement for a PFD to

1. Must be in good, serviceable condition 

2. PFDs must be properly sized for the intended wearer.

3. Sizing for PFDs is based on body weight and chest size.

Report Error

View Answer Report Error Discuss

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

2 4651