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:

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

In September 2017, who launched ‘Pradhan Mantri LPG Panchayat Yojna’?

 

A) Narendra Modi B) Dharmendra Pradhan
C) Piyush Goyal D) R.K. Singh
 
Answer & Explanation Answer: B) Dharmendra Pradhan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 3742
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:

What was the slogan of World AIDS Day which was celebrated on December 01, 2017?

 

A) Right to Health B) Everybody counts
C) Volunteer's Act First D) Right to Live
 
Answer & Explanation Answer: B) Everybody counts

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: Bank Exams

1 3738
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:

' 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 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 3733