Questions

Q:

How would you dynamically allocate a 2-D array of integers?

Answer

#include "alloc.h"


#define MAXROW 3


#define MAXcol 4


main()


{


        int *p, i, J;


        p = (int *) malloc (MAXROW * MAXCOL * sizeof (int));


         for ( i=0; i < MaxROW ; i++)


         {


                for (j=0; j < MAXCOL ; j++)


                { 


                      p [ i * MAXCOL + j] = i;


                       printf ( "%d", p [i * MAXCOL + j] );


                 }


                  printf ("\n");


          }


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3457
Q:

Borobudur Temple in Magelang is located in which country? 

A) Indonesia B) Iran
C) Bangladesh D) Laos
 
Answer & Explanation Answer: A) Indonesia

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

5 3457
Q:

The United Nation declared 2005-2015 as the International Decade for

A) Water for Life Decade B) Bone and Joint Decade
C) Second International Decade for the Eradication of colonialism D) International Decade for Natural Disaster Rreduction
 
Answer & Explanation Answer: A) Water for Life Decade

Explanation:
Report Error

View Answer Report Error Discuss

0 3456
Q:

what is the gram formula mass of NH43PO4?

A) 139.54 B) 140.70
C) 149.08 D) 153.24
 
Answer & Explanation Answer: C) 149.08

Explanation:

The gram formula mass is nothing but molar mass.

 

Composition :

 

Symbol      Element       Atomic weight       Atoms
   

     P         Phosphorus       30.973762               1       = 30.973
   

     O         Oxygen             15.9994                  4       =  63.998
   

     N         Nitrogen            14.0067                  3       =  42.020
   

     H         Hydrogen          1.00794                  12      =  12.096

   

Total   =  30.973+63.998+42.020+12.096 = 149.087

Report Error

View Answer Report Error Discuss

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

1 3455
Q:

The external oblique muscle is named due to its

A) Action B) Fiber detection
C) Location D) Attachment points
 
Answer & Explanation Answer: B) Fiber detection

Explanation:
Report Error

View Answer Report Error Discuss

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

5 3454
Q:

The comparative form of adjectives compares

A) more than two things or people. B) the past to the present.
C) two things or people. D) at least a dozen different times.
 
Answer & Explanation Answer: C) two things or people.

Explanation:

A comparative compares a person or thing with another person or thing. A superlative compares a person or thing with the whole group of which that person or thing is a member

Comparative adjectives compare one person or thing with another and enable us to say whether a person or thing has more or less of a particular quality.

Example :: I’m more interested in music than studies, Arun is taller than Karthik.

Report Error

View Answer Report Error Discuss

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

4 3454
Q:

When is International Talk Like a Pirate Day is observed?

A) December 11 B) September 16
C) March 8 D) September 19
 
Answer & Explanation Answer: D) September 19

Explanation:
Report Error

View Answer Report Error Discuss

37 3454
Q:

The primary effect on climate of a volcanic eruption depends on______

A) the quantity of lava produced B) how hot the eruptive products are
C) the amount of water vapour produced D) none of the above
 
Answer & Explanation Answer: D) none of the above

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

2 3454