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

Who is known as "Iron Lady of India"? 

A) Rani Laxmi Bai B) Sonia Gandhi
C) Indira Gandhi D) None of the above
 
Answer & Explanation Answer: C) Indira Gandhi

Explanation:

Indira Gandhi the first Prime Minister of India is known as the Iron Lady of India.

Who_is_known_as_Iron_Lady_of_India1542609309.jpg image

Report Error

View Answer Report Error Discuss

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

7 3734
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 3731
Q:

' Ashoka Chakra ' is awarded for 

A) Outstanding contribution to literature B) Gallantry by children
C) Acts of gallantry in the presence of the enemy D) Acts most conspicuous bravery of self saccrifice on land, air or sea but not in the presence of the enemy
 
Answer & Explanation Answer: D) Acts most conspicuous bravery of self saccrifice on land, air or sea but not in the presence of the enemy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

3 3730
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 3729
Q:

What is one way to limit a user's access to only a specific number of accounts in the MCC?

Answer

Create a new MCC account linked to the original MCC account. Move the specified number of accounts into that MCC and grant the user access to the sub-MCC account.

Report Error

View answer Workspace Report Error Discuss

9 3726
Q:

In Tennis, hard court is the type of court whose surface is made of

 

A) Concrete B) Clay
C) Grass D) Carpet  
 
Answer & Explanation Answer: A) Concrete

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 3726