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

Who discovered Insulin

A) William Harvey B) Louis Pasteur
C) F.G.Banting D) Alexander Fleming
 
Answer & Explanation Answer: D) Alexander Fleming

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

3 3753
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 3752
Q:

Which Bollywood actress has been appointed as the first Indian woman ambassador (Friend of Australia) for Tourism in Australia  ?

A) Priyanka Chopra B) Aliya Bhatt
C) Parineeti Chopra D) Shilpa Shetty
 
Answer & Explanation Answer: C) Parineeti Chopra

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT
Job Role: Bank PO

7 3752
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 3751
Q:

The country which proposed the observance of the World Pulses Day?

 

A) Berlin B) Benin
C) Burkina Faso D) Nigeria
 
Answer & Explanation Answer: C) Burkina Faso

Explanation:

Burkina Faso proposed the observance of World Pulses Day on 10th February.

 

Report Error

View Answer Report Error Discuss

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

2 3751
Q:

Group of birds flying together is called Startling.

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:

A Group of birds or a flock flying together in hundreds or even in thousands is called Murmuration.

Report Error

View Answer Workspace Report Error Discuss

Subject: Animals and Birds
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

6 3750