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 3744
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 3741
Q:

The Government of India recently decided to create a 'Specific Financing Window ' for its ' Mega Bharat Nirman Programme ' . This specific financing window will operate through

A) SIDBI B) NABARD
C) SBI D) None of these
 
Answer & Explanation Answer: B) NABARD

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

0 3737
Q:

What is the name of the writer of indian origin whose novel, "The Inheritance of Loss" has bagged Man Booker Prize?

A) Vikram Seth B) Kiran Desai
C) Salman Rushdie D) V.S Naipaul
 
Answer & Explanation Answer: B) Kiran Desai

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3736
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 3735
Q:

What is the RST for the TRAP?

Answer

RST 4.5 is called as TRAP.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

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

All of the following are constituents of RNA molecule except _____

A) Thymine B) Adenine
C) Uracil D) Guanine
 
Answer & Explanation Answer: A) Thymine

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE

16 3732