Questions

Q:

How would you free the memory allocated by the following program?

#include "alloc.h"

#define MAXROW 3

#define MAXCOL 4

main()

{

     int **p, i;

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

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

            p[i] = (int *) malloc (MAXCOL * sizeof (int ));

}

Answer

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


free (p[i]);


free (p);

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3742
Q:

The most imposing of all the pyramids is the Great Pyramid at Gizeh near Cairo, was built about 2650 B.C by the ____ of the Old kingdom.

A) Pharaoh Cheops (Khufu) B) King Tutankhamen
C) Hammunrabi D) None of these
 
Answer & Explanation Answer: A) Pharaoh Cheops (Khufu)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History

0 3742
Q:

In which core leader competency is the warrior ethos exemplified

Answer

The U.S. Army identifies eight core leadership competencies. One of these--leading by example--exemplifies the warrior ethos. The leader is always required to behave in a way that provides those under his or her command with a positive and effective role model.


 


 In_which_core_leader_competency_is_the_warrior_ethos_exemplified1558508870.jpg image


 


The warrior ethos is a value that is eschewed by the U.S. Army.


The Army defines it as the adherence to a code that includes always putting the mission first, never accepting defeat, never quitting, and never leaving behind a comrade who has fallen.

Report Error

View answer Workspace Report Error Discuss

Subject: World Organisations Exam Prep: Bank Exams
Job Role: Bank Clerk

3 3742
Q:

Govind Talwalkar,recipient of the recently announced B.D.Goenka Award for excellence in Journalism, was the editor of which of the following newspapers

A) LokSatta B) The Maharastra Times
C) The Tribune D) Nay Bharat Times
 
Answer & Explanation Answer: B) The Maharastra Times

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

4 3740
Q:

Power Point presentation is a collection of

A) Outlines B) Slides and Handouts
C) Speaker’s notes D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Power Point presentation is a collection of Slides and Handouts, Outlines and Speaker’s notes.

Report Error

View Answer Report Error Discuss

3 3739
Q:

A person with blood group AB

 

A) Can donate blood to persons with blood group A, B and O B) Is called universal blood donor
C) Can receive blood from any group D) Is neither a universal recipient nor a donor
 
Answer & Explanation Answer: C) Can receive blood from any group

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

3 3738
Q:

Banaue Rice Terraces in Ifugao is located in which country?

A) Burma B) Brunei
C) Philippines D) India
 
Answer & Explanation Answer: C) Philippines

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

5 3738
Q:

What is the capital of Bangladesh ?

A) Dhaka B) Chittagong
C) Khulna D) Sylhet
 
Answer & Explanation Answer: A) Dhaka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Country Capitals

18 3737